#2D31BC#2D31BC

#2D31BC is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 41.9% C 0.210 H 271.6°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#2D31BC
RGBrgb(45, 49, 188)
HSLhsl(238, 61%, 46%)
HSVhsv(238, 76%, 74%)
CMYKcmyk(76.1%, 73.9%, 0%, 26.3%)
CIE-LABlab(30.36, 45.69, -72.50)
CIE-LCHlch(30.36, 85.70, 302.22°)
OKLaboklab(41.9% 0.0059 -0.2099)
OKLCHoklch(41.9% 0.21 271.6)
XYZxyz(11.2545, 6.3841, 48.2063)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D31BC #BCB82D
analogous
#2D78BC #2D31BC #712DBC
triadic
#2D31BC #BC2D31 #31BC2D
tetradic
#2D31BC #BC2D78 #BCB82D #2DBC71
square
#2D31BC #BC2D78 #BCB82D #2DBC71
split-complementary
#2D31BC #BC712D #78BC2D
monochromatic
#151759 #21248B #2D31BC #5155D5 #8285E1

Accessibility & contrast

On white

9.22
#2D31BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2D31BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D31BC
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D31BC#FFFFFF#000000##FFFFFF
##2D31BC1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC0
Deuteranopia (green-blind)
#0040BA
Tritanopia (blue-blind)
#005974
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2d31bc;
/* rgb */ color: rgb(45, 49, 188);
/* oklch */ color: oklch(41.9% 0.210 271.6);
Tailwind
colors: {
  custom: {
    50: '#7e6bd1',
    500: '#2d31bc',
    950: '#000000',
  },
}
SCSS
$custom: #2d31bc;
$custom-light: #7e6bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d31bc",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 238.322,
    "s": 61.373,
    "l": 45.686
  },
  "oklch": {
    "l": 0.41896,
    "c": 0.20996,
    "h": 271.6
  },
  "luminance": 0.06385
}

Semantic roles & 50–950 ramp

primary
#2D31BC
secondary
#CAC87B
accent
#E043E4
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #2D31BC

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

Preview Lab → · Contrast checker → · Palette generator →

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