#2B287A#2B287A

#2B287A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.135 H 277.9°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#2B287A
RGBrgb(43, 40, 122)
HSLhsl(242, 51%, 32%)
HSVhsv(242, 67%, 48%)
CMYKcmyk(64.8%, 67.2%, 0%, 52.2%)
CIE-LABlab(21.71, 28.07, -46.34)
CIE-LCHlch(21.71, 54.18, 301.21°)
OKLaboklab(33.67% 0.0186 -0.1335)
OKLCHoklch(33.67% 0.135 277.9)
XYZxyz(5.2668, 3.4359, 18.7942)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B287A #777A28
analogous
#284E7A #2B287A #54287A
triadic
#2B287A #7A2B28 #287A2B
tetradic
#2B287A #7A284E #777A28 #287A54
square
#2B287A #7A284E #777A28 #287A54
split-complementary
#2B287A #7A5428 #4E7A28
monochromatic
#0B0A1E #1B194C #2B287A #3B37A8 #5955C7

Accessibility & contrast

On white

12.45
#2B287A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2B287A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B287A
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B287A#FFFFFF#000000##FFFFFF
##2B287A1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003178
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2b287a;
/* rgb */ color: rgb(43, 40, 122);
/* oklch */ color: oklch(33.7% 0.135 277.9);
Tailwind
colors: {
  custom: {
    50: '#6e62a1',
    500: '#2b287a',
    950: '#000000',
  },
}
SCSS
$custom: #2b287a;
$custom-light: #6e62a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b287a",
  "rgb": {
    "r": 43,
    "g": 40,
    "b": 122
  },
  "hsl": {
    "h": 242.195,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33675,
    "c": 0.1348,
    "h": 277.9
  },
  "luminance": 0.03436
}

Semantic roles & 50–950 ramp

primary
#2B287A
secondary
#A9AC52
accent
#DA4ED5
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2B287A

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

Preview Lab → · Contrast checker → · Palette generator →

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