#2D31B8#2D31B8

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

Color values

HEX#2D31B8
RGBrgb(45, 49, 184)
HSLhsl(238, 61%, 45%)
HSVhsv(238, 76%, 72%)
CMYKcmyk(75.5%, 73.4%, 0%, 27.8%)
CIE-LABlab(29.95, 44.35, -70.82)
CIE-LCHlch(29.95, 83.56, 302.06°)
OKLaboklab(41.48% 0.0066 -0.205)
OKLCHoklch(41.48% 0.205 271.8)
XYZxyz(10.8293, 6.2141, 45.9668)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D31B8 #B8B42D
analogous
#2D77B8 #2D31B8 #6E2DB8
triadic
#2D31B8 #B82D31 #31B82D
tetradic
#2D31B8 #B82D77 #B8B42D #2DB86E
square
#2D31B8 #B82D77 #B8B42D #2DB86E
split-complementary
#2D31B8 #B86E2D #77B82D
monochromatic
#151756 #212487 #2D31B8 #4E52D4 #8082E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D31B8#FFFFFF#000000##FFFFFF
##2D31B81.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)
#004DBC
Deuteranopia (green-blind)
#0040B6
Tritanopia (blue-blind)
#005872
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2d31b8;
/* rgb */ color: rgb(45, 49, 184);
/* oklch */ color: oklch(41.5% 0.205 271.8);
Tailwind
colors: {
  custom: {
    50: '#7d6acf',
    500: '#2d31b8',
    950: '#000000',
  },
}
SCSS
$custom: #2d31b8;
$custom-light: #7d6acf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d31b8",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 238.273,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.41477,
    "c": 0.20509,
    "h": 271.8
  },
  "luminance": 0.06215
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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