#2D31B3#2D31B3

#2D31B3 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 41.0% C 0.199 H 272.1°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#2D31B3
RGBrgb(45, 49, 179)
HSLhsl(238, 60%, 44%)
HSVhsv(238, 75%, 70%)
CMYKcmyk(74.9%, 72.6%, 0%, 29.8%)
CIE-LABlab(29.43, 42.66, -68.69)
CIE-LCHlch(29.43, 80.86, 301.84°)
OKLaboklab(40.96% 0.0073 -0.1988)
OKLCHoklch(40.96% 0.199 272.1)
XYZxyz(10.3144, 6.0081, 43.2552)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D31B3 #B3AF2D
analogous
#2D74B3 #2D31B3 #6C2DB3
triadic
#2D31B3 #B32D31 #31B32D
tetradic
#2D31B3 #B32D74 #B3AF2D #2DB36C
square
#2D31B3 #B32D74 #B3AF2D #2DB36C
split-complementary
#2D31B3 #B36C2D #74B32D
monochromatic
#141651 #212482 #2D31B3 #4B4FD2 #7C7FDE

Accessibility & contrast

On white

9.54
#2D31B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2D31B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D31B3
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D31B3#FFFFFF#000000##FFFFFF
##2D31B31.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB7
Deuteranopia (green-blind)
#003FB1
Tritanopia (blue-blind)
#00566F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2d31b3;
/* rgb */ color: rgb(45, 49, 179);
/* oklch */ color: oklch(41.0% 0.199 272.1);
Tailwind
colors: {
  custom: {
    50: '#7c6acb',
    500: '#2d31b3',
    950: '#000000',
  },
}
SCSS
$custom: #2d31b3;
$custom-light: #7c6acb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d31b3",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 238.209,
    "s": 59.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.40957,
    "c": 0.19894,
    "h": 272.1
  },
  "luminance": 0.06009
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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