#2D31B6#2D31B6

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

Color values

HEX#2D31B6
RGBrgb(45, 49, 182)
HSLhsl(238, 60%, 45%)
HSVhsv(238, 75%, 71%)
CMYKcmyk(75.3%, 73.1%, 0%, 28.6%)
CIE-LABlab(29.74, 43.68, -69.97)
CIE-LCHlch(29.74, 82.48, 301.97°)
OKLaboklab(41.27% 0.0069 -0.2025)
OKLCHoklch(41.27% 0.203 271.9)
XYZxyz(10.6211, 6.1308, 44.8705)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D31B6 #B6B22D
analogous
#2D76B6 #2D31B6 #6E2DB6
triadic
#2D31B6 #B62D31 #31B62D
tetradic
#2D31B6 #B62D76 #B6B22D #2DB66E
square
#2D31B6 #B62D76 #B6B22D #2DB66E
split-complementary
#2D31B6 #B66E2D #76B62D
monochromatic
#151754 #212485 #2D31B6 #4D51D3 #7E81DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D31B6#FFFFFF#000000##FFFFFF
##2D31B61.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)
#004DBA
Deuteranopia (green-blind)
#003FB4
Tritanopia (blue-blind)
#005770
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2d31b6;
/* rgb */ color: rgb(45, 49, 182);
/* oklch */ color: oklch(41.3% 0.203 271.9);
Tailwind
colors: {
  custom: {
    50: '#7c6acd',
    500: '#2d31b6',
    950: '#000000',
  },
}
SCSS
$custom: #2d31b6;
$custom-light: #7c6acd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d31b6",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 238.248,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41268,
    "c": 0.20264,
    "h": 271.9
  },
  "luminance": 0.06132
}

Semantic roles & 50–950 ramp

primary
#2D31B6
secondary
#C8C577
accent
#DF44E3
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2D31B6

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

Preview Lab → · Contrast checker → · Palette generator →

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