#2F31C8#2F31C8

#2F31C8 is a dark, highly saturated blue. Relative luminance 0.070; OKLCH L 43.3% C 0.224 H 271.5°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#2F31C8
RGBrgb(47, 49, 200)
HSLhsl(239, 62%, 48%)
HSVhsv(239, 77%, 78%)
CMYKcmyk(76.5%, 75.5%, 0%, 21.6%)
CIE-LABlab(31.74, 49.80, -77.27)
CIE-LCHlch(31.74, 91.93, 302.80°)
OKLaboklab(43.28% 0.006 -0.2237)
OKLCHoklch(43.28% 0.224 271.5)
XYZxyz(12.6924, 6.9697, 55.3087)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F31C8 #C8C62F
analogous
#2F7DC8 #2F31C8 #792FC8
triadic
#2F31C8 #C82F31 #31C82F
tetradic
#2F31C8 #C82F7D #C8C62F #2FC879
square
#2F31C8 #C82F7D #C8C62F #2FC879
split-complementary
#2F31C8 #C8792F #7DC82F
monochromatic
#181965 #232596 #2F31C8 #5C5DD9 #8D8EE4

Accessibility & contrast

On white

8.77
#2F31C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2F31C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F31C8
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F31C8#FFFFFF#000000##FFFFFF
##2F31C81.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052CC
Deuteranopia (green-blind)
#0043C5
Tritanopia (blue-blind)
#005E7B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f31c8;
/* rgb */ color: rgb(47, 49, 200);
/* oklch */ color: oklch(43.3% 0.224 271.5);
Tailwind
colors: {
  custom: {
    50: '#816bda',
    500: '#2f31c8',
    950: '#000000',
  },
}
SCSS
$custom: #2f31c8;
$custom-light: #816bda;
$custom-dark: #000000;
JSON
{
  "hex": "#2f31c8",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 239.216,
    "s": 61.943,
    "l": 48.431
  },
  "oklch": {
    "l": 0.43276,
    "c": 0.22379,
    "h": 271.5
  },
  "luminance": 0.06971
}

Semantic roles & 50–950 ramp

primary
#2F31C8
secondary
#CFCE84
accent
#E343E5
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #2F31C8

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

Preview Lab → · Contrast checker → · Palette generator →

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