#2F31B9#2F31B9

#2F31B9 is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.7% C 0.206 H 272.4°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#2F31B9
RGBrgb(47, 49, 185)
HSLhsl(239, 59%, 45%)
HSVhsv(239, 75%, 73%)
CMYKcmyk(74.6%, 73.5%, 0%, 27.5%)
CIE-LABlab(30.16, 44.86, -71.05)
CIE-LCHlch(30.16, 84.03, 302.27°)
OKLaboklab(41.69% 0.0086 -0.2056)
OKLCHoklch(41.69% 0.206 272.4)
XYZxyz(11.0246, 6.3026, 46.5250)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F31B9 #B9B72F
analogous
#2F76B9 #2F31B9 #722FB9
triadic
#2F31B9 #B92F31 #31B92F
tetradic
#2F31B9 #B92F76 #B9B72F #2FB972
square
#2F31B9 #B92F76 #B9B72F #2FB972
split-complementary
#2F31B9 #B9722F #76B92F
monochromatic
#161757 #232488 #2F31B9 #5254D3 #8384DF

Accessibility & contrast

On white

9.29
#2F31B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2F31B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F31B9
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F31B9#FFFFFF#000000##FFFFFF
##2F31B91.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBD
Deuteranopia (green-blind)
#0040B7
Tritanopia (blue-blind)
#005872
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f31b9;
/* rgb */ color: rgb(47, 49, 185);
/* oklch */ color: oklch(41.7% 0.206 272.4);
Tailwind
colors: {
  custom: {
    50: '#7e6bcf',
    500: '#2f31b9',
    950: '#000000',
  },
}
SCSS
$custom: #2f31b9;
$custom-light: #7e6bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f31b9",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 239.13,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.41693,
    "c": 0.20579,
    "h": 272.4
  },
  "luminance": 0.06304
}

Semantic roles & 50–950 ramp

primary
#2F31B9
secondary
#C9C87B
accent
#E045E3
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #2F31B9

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

Preview Lab → · Contrast checker → · Palette generator →

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