#2D31B9#2D31B9

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

Color values

HEX#2D31B9
RGBrgb(45, 49, 185)
HSLhsl(238, 61%, 45%)
HSVhsv(238, 76%, 73%)
CMYKcmyk(75.7%, 73.5%, 0%, 27.5%)
CIE-LABlab(30.05, 44.69, -71.24)
CIE-LCHlch(30.05, 84.10, 302.10°)
OKLaboklab(41.58% 0.0064 -0.2062)
OKLCHoklch(41.58% 0.206 271.8)
XYZxyz(10.9345, 6.2561, 46.5208)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D31B9 #B9B52D
analogous
#2D77B9 #2D31B9 #6F2DB9
triadic
#2D31B9 #B92D31 #31B92D
tetradic
#2D31B9 #B92D77 #B9B52D #2DB96F
square
#2D31B9 #B92D77 #B9B52D #2DB96F
split-complementary
#2D31B9 #B96F2D #77B92D
monochromatic
#151757 #212488 #2D31B9 #4F53D4 #8083E0

Accessibility & contrast

On white

9.33
#2D31B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2D31B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D31B9
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D31B9#FFFFFF#000000##FFFFFF
##2D31B91.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.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: #2d31b9;
/* rgb */ color: rgb(45, 49, 185);
/* oklch */ color: oklch(41.6% 0.206 271.8);
Tailwind
colors: {
  custom: {
    50: '#7d6bcf',
    500: '#2d31b9',
    950: '#000000',
  },
}
SCSS
$custom: #2d31b9;
$custom-light: #7d6bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d31b9",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 238.286,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.41581,
    "c": 0.20631,
    "h": 271.8
  },
  "luminance": 0.06257
}

Semantic roles & 50–950 ramp

primary
#2D31B9
secondary
#C9C779
accent
#DF44E4
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2D31B9

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

Preview Lab → · Contrast checker → · Palette generator →

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