#2F288E#2F288E

#2F288E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.9% C 0.161 H 277.6°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#2F288E
RGBrgb(47, 40, 142)
HSLhsl(244, 56%, 36%)
HSVhsv(244, 72%, 56%)
CMYKcmyk(66.9%, 71.8%, 0%, 44.3%)
CIE-LABlab(23.92, 35.64, -55.28)
CIE-LCHlch(23.92, 65.77, 302.81°)
OKLaboklab(35.93% 0.0213 -0.1596)
OKLCHoklch(35.93% 0.161 277.6)
XYZxyz(6.8120, 4.0743, 26.0134)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F288E #878E28
analogous
#28548E #2F288E #62288E
triadic
#2F288E #8E2F28 #288E2F
tetradic
#2F288E #8E2854 #878E28 #288E62
square
#2F288E #8E2854 #878E28 #288E62
split-complementary
#2F288E #8E6228 #548E28
monochromatic
#0F0D2F #1F1B5E #2F288E #3F35BE #665FD2

Accessibility & contrast

On white

11.57
#2F288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2F288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F288E
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F288E#FFFFFF#000000##FFFFFF
##2F288E1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f288e;
/* rgb */ color: rgb(47, 40, 142);
/* oklch */ color: oklch(35.9% 0.161 277.6);
Tailwind
colors: {
  custom: {
    50: '#7563b0',
    500: '#2f288e',
    950: '#000000',
  },
}
SCSS
$custom: #2f288e;
$custom-light: #7563b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f288e",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 244.118,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35927,
    "c": 0.16099,
    "h": 277.6
  },
  "luminance": 0.04075
}

Semantic roles & 50–950 ramp

primary
#2F288E
secondary
#B1B75B
accent
#DF48D5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2F288E

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

Preview Lab → · Contrast checker → · Palette generator →

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