#2F31B5#2F31B5

#2F31B5 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.3% C 0.201 H 272.7°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#2F31B5
RGBrgb(47, 49, 181)
HSLhsl(239, 59%, 45%)
HSVhsv(239, 74%, 71%)
CMYKcmyk(74%, 72.9%, 0%, 29%)
CIE-LABlab(29.75, 43.52, -69.35)
CIE-LCHlch(29.75, 81.88, 302.11°)
OKLaboklab(41.28% 0.0093 -0.2007)
OKLCHoklch(41.28% 0.201 272.7)
XYZxyz(10.6083, 6.1361, 44.3324)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F31B5 #B5B32F
analogous
#2F74B5 #2F31B5 #702FB5
triadic
#2F31B5 #B52F31 #31B52F
tetradic
#2F31B5 #B52F74 #B5B32F #2FB570
square
#2F31B5 #B52F74 #B5B32F #2FB570
split-complementary
#2F31B5 #B5702F #74B52F
monochromatic
#161754 #222484 #2F31B5 #5052D1 #8082DE

Accessibility & contrast

On white

9.43
#2F31B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2F31B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F31B5
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F31B5#FFFFFF#000000##FFFFFF
##2F31B51.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB9
Deuteranopia (green-blind)
#0040B3
Tritanopia (blue-blind)
#005770
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f31b5;
/* rgb */ color: rgb(47, 49, 181);
/* oklch */ color: oklch(41.3% 0.201 272.7);
Tailwind
colors: {
  custom: {
    50: '#7d6acc',
    500: '#2f31b5',
    950: '#000000',
  },
}
SCSS
$custom: #2f31b5;
$custom-light: #7d6acc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f31b5",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 239.104,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.41278,
    "c": 0.20089,
    "h": 272.7
  },
  "luminance": 0.06137
}

Semantic roles & 50–950 ramp

primary
#2F31B5
secondary
#C7C679
accent
#E046E2
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2F31B5

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

Preview Lab → · Contrast checker → · Palette generator →

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