#2F287D#2F287D

#2F287D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.138 H 279.9°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#2F287D
RGBrgb(47, 40, 125)
HSLhsl(245, 52%, 32%)
HSVhsv(245, 68%, 49%)
CMYKcmyk(62.4%, 68%, 0%, 51%)
CIE-LABlab(22.31, 29.80, -47.25)
CIE-LCHlch(22.31, 55.86, 302.23°)
OKLaboklab(34.28% 0.0238 -0.1361)
OKLCHoklch(34.28% 0.138 279.9)
XYZxyz(5.6316, 3.6022, 19.7966)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F287D #767D28
analogous
#284C7D #2F287D #59287D
triadic
#2F287D #7D2F28 #287D2F
tetradic
#2F287D #7D284C #767D28 #287D59
square
#2F287D #7D284C #767D28 #287D59
split-complementary
#2F287D #7D5928 #4C7D28
monochromatic
#0C0A20 #1E194F #2F287D #4037AB #6056C9

Accessibility & contrast

On white

12.21
#2F287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2F287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F287D
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F287D#FFFFFF#000000##FFFFFF
##2F287D1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f287d;
/* rgb */ color: rgb(47, 40, 125);
/* oklch */ color: oklch(34.3% 0.138 279.9);
Tailwind
colors: {
  custom: {
    50: '#7162a3',
    500: '#2f287d',
    950: '#000000',
  },
}
SCSS
$custom: #2f287d;
$custom-light: #7162a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f287d",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 244.941,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34278,
    "c": 0.13812,
    "h": 279.9
  },
  "luminance": 0.03603
}

Semantic roles & 50–950 ramp

primary
#2F287D
secondary
#A7AE53
accent
#DB4DCF
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2F287D

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

Preview Lab → · Contrast checker → · Palette generator →

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