#2F31B7#2F31B7

#2F31B7 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.5% C 0.203 H 272.5°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#2F31B7
RGBrgb(47, 49, 183)
HSLhsl(239, 59%, 45%)
HSVhsv(239, 74%, 72%)
CMYKcmyk(74.3%, 73.2%, 0%, 28.2%)
CIE-LABlab(29.96, 44.20, -70.20)
CIE-LCHlch(29.96, 82.95, 302.19°)
OKLaboklab(41.49% 0.009 -0.2031)
OKLCHoklch(41.49% 0.203 272.5)
XYZxyz(10.8150, 6.2187, 45.4209)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F31B7 #B7B52F
analogous
#2F75B7 #2F31B7 #712FB7
triadic
#2F31B7 #B72F31 #31B72F
tetradic
#2F31B7 #B72F75 #B7B52F #2FB771
square
#2F31B7 #B72F75 #B7B52F #2FB771
split-complementary
#2F31B7 #B7712F #75B72F
monochromatic
#161756 #222486 #2F31B7 #5153D2 #8283DF

Accessibility & contrast

On white

9.36
#2F31B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2F31B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F31B7
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F31B7#FFFFFF#000000##FFFFFF
##2F31B71.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBB
Deuteranopia (green-blind)
#0040B5
Tritanopia (blue-blind)
#005771
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f31b7;
/* rgb */ color: rgb(47, 49, 183);
/* oklch */ color: oklch(41.5% 0.203 272.5);
Tailwind
colors: {
  custom: {
    50: '#7d6bce',
    500: '#2f31b7',
    950: '#000000',
  },
}
SCSS
$custom: #2f31b7;
$custom-light: #7d6bce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f31b7",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 239.118,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.41485,
    "c": 0.20335,
    "h": 272.5
  },
  "luminance": 0.0622
}

Semantic roles & 50–950 ramp

primary
#2F31B7
secondary
#C8C77A
accent
#E045E2
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2F31B7

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

Preview Lab → · Contrast checker → · Palette generator →

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