#2B287D#2B287D

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

Color values

HEX#2B287D
RGBrgb(43, 40, 125)
HSLhsl(242, 52%, 32%)
HSVhsv(242, 68%, 49%)
CMYKcmyk(65.6%, 68%, 0%, 51%)
CIE-LABlab(21.99, 29.14, -47.79)
CIE-LCHlch(21.99, 55.98, 301.37°)
OKLaboklab(33.96% 0.0183 -0.1378)
OKLCHoklch(33.96% 0.139 277.6)
XYZxyz(5.4555, 3.5114, 19.7883)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B287D #7A7D28
analogous
#284F7D #2B287D #56287D
triadic
#2B287D #7D2B28 #287D2B
tetradic
#2B287D #7D284F #7A7D28 #287D56
square
#2B287D #7D284F #7A7D28 #287D56
split-complementary
#2B287D #7D5628 #4F7D28
monochromatic
#0B0A20 #1B194F #2B287D #3B37AB #5A56C9

Accessibility & contrast

On white

12.34
#2B287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2B287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B287D
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B287D#FFFFFF#000000##FFFFFF
##2B287D1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.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: #2b287d;
/* rgb */ color: rgb(43, 40, 125);
/* oklch */ color: oklch(34.0% 0.139 277.6);
Tailwind
colors: {
  custom: {
    50: '#6f62a3',
    500: '#2b287d',
    950: '#000000',
  },
}
SCSS
$custom: #2b287d;
$custom-light: #6f62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b287d",
  "rgb": {
    "r": 43,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 242.118,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3396,
    "c": 0.13899,
    "h": 277.6
  },
  "luminance": 0.03512
}

Semantic roles & 50–950 ramp

primary
#2B287D
secondary
#ABAE53
accent
#DB4DD6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2B287D

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

Preview Lab → · Contrast checker → · Palette generator →

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