#2B287F#2B287F

#2B287F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.142 H 277.3°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#2B287F
RGBrgb(43, 40, 127)
HSLhsl(242, 52%, 33%)
HSVhsv(242, 69%, 50%)
CMYKcmyk(66.1%, 68.5%, 0%, 50.2%)
CIE-LABlab(22.17, 29.85, -48.76)
CIE-LCHlch(22.17, 57.17, 301.48°)
OKLaboklab(34.15% 0.0181 -0.1406)
OKLCHoklch(34.15% 0.142 277.3)
XYZxyz(5.5846, 3.5630, 20.4680)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B287F #7C7F28
analogous
#28507F #2B287F #56287F
triadic
#2B287F #7F2B28 #287F2B
tetradic
#2B287F #7F2850 #7C7F28 #287F56
square
#2B287F #7F2850 #7C7F28 #287F56
split-complementary
#2B287F #7F5628 #507F28
monochromatic
#0B0B22 #1B1950 #2B287F #3B37AE #5B57CA

Accessibility & contrast

On white

12.26
#2B287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B287F
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B287F#FFFFFF#000000##FFFFFF
##2B287F1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b287f;
/* rgb */ color: rgb(43, 40, 127);
/* oklch */ color: oklch(34.2% 0.142 277.3);
Tailwind
colors: {
  custom: {
    50: '#7062a5',
    500: '#2b287f',
    950: '#000000',
  },
}
SCSS
$custom: #2b287f;
$custom-light: #7062a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b287f",
  "rgb": {
    "r": 43,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 242.069,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34151,
    "c": 0.14176,
    "h": 277.3
  },
  "luminance": 0.03563
}

Semantic roles & 50–950 ramp

primary
#2B287F
secondary
#ACAF54
accent
#DC4CD7
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2B287F

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

Preview Lab → · Contrast checker → · Palette generator →

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