#2F288A#2F288A

#2F288A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.156 H 278.1°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#2F288A
RGBrgb(47, 40, 138)
HSLhsl(244, 55%, 35%)
HSVhsv(244, 71%, 54%)
CMYKcmyk(65.9%, 71%, 0%, 45.9%)
CIE-LABlab(23.53, 34.27, -53.43)
CIE-LCHlch(23.53, 63.48, 302.68°)
OKLaboklab(35.53% 0.0219 -0.1542)
OKLCHoklch(35.53% 0.156 278.1)
XYZxyz(6.5170, 3.9564, 24.4600)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F288A #838A28
analogous
#28528A #2F288A #60288A
triadic
#2F288A #8A2F28 #288A2F
tetradic
#2F288A #8A2852 #838A28 #288A60
square
#2F288A #8A2852 #838A28 #288A60
split-complementary
#2F288A #8A6028 #528A28
monochromatic
#0F0C2B #1F1A5B #2F288A #3F36B9 #655DD0

Accessibility & contrast

On white

11.72
#2F288A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2F288A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F288A
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F288A#FFFFFF#000000##FFFFFF
##2F288A1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003488
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f288a;
/* rgb */ color: rgb(47, 40, 138);
/* oklch */ color: oklch(35.5% 0.156 278.1);
Tailwind
colors: {
  custom: {
    50: '#7463ad',
    500: '#2f288a',
    950: '#000000',
  },
}
SCSS
$custom: #2f288a;
$custom-light: #7463ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f288a",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 138
  },
  "hsl": {
    "h": 244.286,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.3553,
    "c": 0.15572,
    "h": 278.1
  },
  "luminance": 0.03957
}

Semantic roles & 50–950 ramp

primary
#2F288A
secondary
#AFB559
accent
#DE49D4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F288A

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

Preview Lab → · Contrast checker → · Palette generator →

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