#2D31B2#2D31B2

#2D31B2 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.9% C 0.198 H 272.2°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#2D31B2
RGBrgb(45, 49, 178)
HSLhsl(238, 60%, 44%)
HSVhsv(238, 75%, 70%)
CMYKcmyk(74.7%, 72.5%, 0%, 30.2%)
CIE-LABlab(29.33, 42.32, -68.26)
CIE-LCHlch(29.33, 80.32, 301.80°)
OKLaboklab(40.85% 0.0075 -0.1975)
OKLCHoklch(40.85% 0.198 272.2)
XYZxyz(10.2137, 5.9678, 42.7245)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D31B2 #B2AE2D
analogous
#2D73B2 #2D31B2 #6B2DB2
triadic
#2D31B2 #B22D31 #31B22D
tetradic
#2D31B2 #B22D73 #B2AE2D #2DB26B
square
#2D31B2 #B22D73 #B2AE2D #2DB26B
split-complementary
#2D31B2 #B26B2D #73B22D
monochromatic
#141650 #212481 #2D31B2 #4B4FD1 #7C7FDE

Accessibility & contrast

On white

9.57
#2D31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2D31B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D31B2
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D31B2#FFFFFF#000000##FFFFFF
##2D31B21.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB6
Deuteranopia (green-blind)
#003FB0
Tritanopia (blue-blind)
#00566E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2d31b2;
/* rgb */ color: rgb(45, 49, 178);
/* oklch */ color: oklch(40.9% 0.198 272.2);
Tailwind
colors: {
  custom: {
    50: '#7b6aca',
    500: '#2d31b2',
    950: '#000000',
  },
}
SCSS
$custom: #2d31b2;
$custom-light: #7b6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#2d31b2",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 238.195,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40854,
    "c": 0.19769,
    "h": 272.2
  },
  "luminance": 0.05969
}

Semantic roles & 50–950 ramp

primary
#2D31B2
secondary
#C6C475
accent
#DE45E3
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2D31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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