#2D31B5#2D31B5

#2D31B5 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.2% C 0.201 H 272.0°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#2D31B5
RGBrgb(45, 49, 181)
HSLhsl(238, 60%, 44%)
HSVhsv(238, 75%, 71%)
CMYKcmyk(75.1%, 72.9%, 0%, 29%)
CIE-LABlab(29.64, 43.34, -69.55)
CIE-LCHlch(29.64, 81.94, 301.93°)
OKLaboklab(41.16% 0.007 -0.2013)
OKLCHoklch(41.16% 0.201 272)
XYZxyz(10.5182, 6.0896, 44.3282)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D31B5 #B5B12D
analogous
#2D75B5 #2D31B5 #6D2DB5
triadic
#2D31B5 #B52D31 #31B52D
tetradic
#2D31B5 #B52D75 #B5B12D #2DB56D
square
#2D31B5 #B52D75 #B5B12D #2DB56D
split-complementary
#2D31B5 #B56D2D #75B52D
monochromatic
#151653 #212484 #2D31B5 #4D51D3 #7E80DF

Accessibility & contrast

On white

9.47
#2D31B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2D31B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D31B5
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D31B5#FFFFFF#000000##FFFFFF
##2D31B51.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB9
Deuteranopia (green-blind)
#003FB3
Tritanopia (blue-blind)
#005770
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2d31b5;
/* rgb */ color: rgb(45, 49, 181);
/* oklch */ color: oklch(41.2% 0.201 272.0);
Tailwind
colors: {
  custom: {
    50: '#7c6acc',
    500: '#2d31b5',
    950: '#000000',
  },
}
SCSS
$custom: #2d31b5;
$custom-light: #7c6acc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d31b5",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 238.235,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.41164,
    "c": 0.2014,
    "h": 272
  },
  "luminance": 0.06091
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D31B5

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

Preview Lab → · Contrast checker → · Palette generator →

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