#2F288D#2F288D

#2F288D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.160 H 277.7°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#2F288D
RGBrgb(47, 40, 141)
HSLhsl(244, 56%, 35%)
HSVhsv(244, 72%, 55%)
CMYKcmyk(66.7%, 71.6%, 0%, 44.7%)
CIE-LABlab(23.82, 35.30, -54.82)
CIE-LCHlch(23.82, 65.20, 302.78°)
OKLaboklab(35.83% 0.0215 -0.1582)
OKLCHoklch(35.83% 0.16 277.7)
XYZxyz(6.7372, 4.0444, 25.6198)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F288D #868D28
analogous
#28548D #2F288D #61288D
triadic
#2F288D #8D2F28 #288D2F
tetradic
#2F288D #8D2854 #868D28 #288D61
square
#2F288D #8D2854 #868D28 #288D61
split-complementary
#2F288D #8D6128 #548D28
monochromatic
#0F0D2E #1F1A5D #2F288D #3F36BD #665ED1

Accessibility & contrast

On white

11.61
#2F288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2F288D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F288D
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F288D#FFFFFF#000000##FFFFFF
##2F288D1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f288d;
/* rgb */ color: rgb(47, 40, 141);
/* oklch */ color: oklch(35.8% 0.160 277.7);
Tailwind
colors: {
  custom: {
    50: '#7463af',
    500: '#2f288d',
    950: '#000000',
  },
}
SCSS
$custom: #2f288d;
$custom-light: #7463af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f288d",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 244.158,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35827,
    "c": 0.15968,
    "h": 277.7
  },
  "luminance": 0.04045
}

Semantic roles & 50–950 ramp

primary
#2F288D
secondary
#B0B75A
accent
#DF49D5
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F288D

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

Preview Lab → · Contrast checker → · Palette generator →

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