#2C287D#2C287D

#2C287D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.139 H 278.1°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#2C287D
RGBrgb(44, 40, 125)
HSLhsl(243, 52%, 32%)
HSVhsv(243, 68%, 49%)
CMYKcmyk(64.8%, 68%, 0%, 51%)
CIE-LABlab(22.06, 29.30, -47.66)
CIE-LCHlch(22.06, 55.95, 301.58°)
OKLaboklab(34.04% 0.0197 -0.1374)
OKLCHoklch(34.04% 0.139 278.1)
XYZxyz(5.4980, 3.5333, 19.7903)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C287D #797D28
analogous
#284E7D #2C287D #57287D
triadic
#2C287D #7D2C28 #287D2C
tetradic
#2C287D #7D284E #797D28 #287D57
square
#2C287D #7D284E #797D28 #287D57
split-complementary
#2C287D #7D5728 #4E7D28
monochromatic
#0B0A20 #1C194F #2C287D #3C37AB #5C56C9

Accessibility & contrast

On white

12.30
#2C287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2C287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C287D
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C287D#FFFFFF#000000##FFFFFF
##2C287D1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c287d;
/* rgb */ color: rgb(44, 40, 125);
/* oklch */ color: oklch(34.0% 0.139 278.1);
Tailwind
colors: {
  custom: {
    50: '#7062a3',
    500: '#2c287d',
    950: '#000000',
  },
}
SCSS
$custom: #2c287d;
$custom-light: #7062a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c287d",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 242.824,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34037,
    "c": 0.13876,
    "h": 278.1
  },
  "luminance": 0.03534
}

Semantic roles & 50–950 ramp

primary
#2C287D
secondary
#AAAE53
accent
#DB4DD4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2C287D

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

Preview Lab → · Contrast checker → · Palette generator →

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