#2D31C7#2D31C7

#2D31C7 is a dark, highly saturated blue. Relative luminance 0.069; OKLCH L 43.1% C 0.223 H 271.0°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#2D31C7
RGBrgb(45, 49, 199)
HSLhsl(238, 63%, 48%)
HSVhsv(238, 77%, 78%)
CMYKcmyk(77.4%, 75.4%, 0%, 22%)
CIE-LABlab(31.52, 49.33, -77.04)
CIE-LCHlch(31.52, 91.48, 302.63°)
OKLaboklab(43.07% 0.0041 -0.2231)
OKLCHoklch(43.07% 0.223 271)
XYZxyz(12.4858, 6.8767, 54.6910)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D31C7 #C7C32D
analogous
#2D7EC7 #2D31C7 #762DC7
triadic
#2D31C7 #C72D31 #31C72D
tetradic
#2D31C7 #C72D7E #C7C32D #2DC776
square
#2D31C7 #C72D7E #C7C32D #2DC776
split-complementary
#2D31C7 #C7762D #7EC72D
monochromatic
#161863 #222595 #2D31C7 #585BD9 #8A8CE5

Accessibility & contrast

On white

8.84
#2D31C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2D31C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D31C7
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D31C7#FFFFFF#000000##FFFFFF
##2D31C71.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052CB
Deuteranopia (green-blind)
#0042C4
Tritanopia (blue-blind)
#005E7A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2d31c7;
/* rgb */ color: rgb(45, 49, 199);
/* oklch */ color: oklch(43.1% 0.223 271.0);
Tailwind
colors: {
  custom: {
    50: '#806bd9',
    500: '#2d31c7',
    950: '#000000',
  },
}
SCSS
$custom: #2d31c7;
$custom-light: #806bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d31c7",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 199
  },
  "hsl": {
    "h": 238.442,
    "s": 63.115,
    "l": 47.843
  },
  "oklch": {
    "l": 0.43065,
    "c": 0.22313,
    "h": 271
  },
  "luminance": 0.06878
}

Semantic roles & 50–950 ramp

primary
#2D31C7
secondary
#CECC81
accent
#E242E6
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #2D31C7

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

Preview Lab → · Contrast checker → · Palette generator →

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