#2C30A2#2C30A2

#2C30A2 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.0% C 0.179 H 272.9°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#2C30A2
RGBrgb(44, 48, 162)
HSLhsl(238, 57%, 40%)
HSVhsv(238, 73%, 64%)
CMYKcmyk(72.8%, 70.4%, 0%, 36.5%)
CIE-LABlab(27.46, 37.29, -61.74)
CIE-LCHlch(27.46, 72.13, 301.14°)
OKLaboklab(39.01% 0.0092 -0.1785)
OKLCHoklch(39.01% 0.179 272.9)
XYZxyz(8.6151, 5.2572, 34.7361)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C30A2 #A29E2C
analogous
#2C6BA2 #2C30A2 #632CA2
triadic
#2C30A2 #A22C30 #30A22C
tetradic
#2C30A2 #A22C6B #A29E2C #2CA263
square
#2C30A2 #A22C6B #A29E2C #2CA263
split-complementary
#2C30A2 #A2632C #6BA22C
monochromatic
#121342 #1F2272 #2C30A2 #4045CB #7074D8

Accessibility & contrast

On white

10.24
#2C30A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2C30A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C30A2
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C30A2#FFFFFF#000000##FFFFFF
##2C30A21.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A5
Deuteranopia (green-blind)
#003BA0
Tritanopia (blue-blind)
#004F65
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2c30a2;
/* rgb */ color: rgb(44, 48, 162);
/* oklch */ color: oklch(39.0% 0.179 272.9);
Tailwind
colors: {
  custom: {
    50: '#7769bf',
    500: '#2c30a2',
    950: '#000000',
  },
}
SCSS
$custom: #2c30a2;
$custom-light: #7769bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c30a2",
  "rgb": {
    "r": 44,
    "g": 48,
    "b": 162
  },
  "hsl": {
    "h": 237.966,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39011,
    "c": 0.17877,
    "h": 272.9
  },
  "luminance": 0.05258
}

Semantic roles & 50–950 ramp

primary
#2C30A2
secondary
#BFBD6A
accent
#DB47E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2C30A2

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2C30A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva