#2C408E#2C408E

#2C408E is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.2% C 0.131 H 268.9°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#2C408E
RGBrgb(44, 64, 142)
HSLhsl(228, 53%, 36%)
HSVhsv(228, 69%, 56%)
CMYKcmyk(69%, 54.9%, 0%, 44.3%)
CIE-LABlab(29.80, 19.43, -45.69)
CIE-LCHlch(29.80, 49.66, 293.04°)
OKLaboklab(40.21% -0.0024 -0.1313)
OKLCHoklch(40.21% 0.131 268.9)
XYZxyz(7.7529, 6.1545, 26.3653)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C408E #8E7A2C
analogous
#2C718E #2C408E #492C8E
triadic
#2C408E #8E2C40 #408E2C
tetradic
#2C408E #8E2C71 #8E7A2C #2C8E49
square
#2C408E #8E2C71 #8E7A2C #2C8E49
split-complementary
#2C408E #8E492C #718E2C
monochromatic
#0F1631 #1E2B5F #2C408E #3A55BD #657BCF

Accessibility & contrast

On white

9.41
#2C408E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2C408E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C408E
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C408E#FFFFFF#000000##FFFFFF
##2C408E1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084B91
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2c408e;
/* rgb */ color: rgb(44, 64, 142);
/* oklch */ color: oklch(40.2% 0.131 268.9);
Tailwind
colors: {
  custom: {
    50: '#7174b0',
    500: '#2c408e',
    950: '#000000',
  },
}
SCSS
$custom: #2c408e;
$custom-light: #7174b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c408e",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 142
  },
  "hsl": {
    "h": 227.755,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40208,
    "c": 0.13136,
    "h": 268.9
  },
  "luminance": 0.06155
}

Semantic roles & 50–950 ramp

primary
#2C408E
secondary
#B6A460
accent
#BF4CDC
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2C408E

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

Preview Lab → · Contrast checker → · Palette generator →

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