#2C31B7#2C31B7

#2C31B7 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.3% C 0.204 H 271.6°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#2C31B7
RGBrgb(44, 49, 183)
HSLhsl(238, 61%, 45%)
HSVhsv(238, 76%, 72%)
CMYKcmyk(76%, 73.2%, 0%, 28.2%)
CIE-LABlab(29.79, 43.93, -70.49)
CIE-LCHlch(29.79, 83.06, 301.93°)
OKLaboklab(41.32% 0.0056 -0.204)
OKLCHoklch(41.32% 0.204 271.6)
XYZxyz(10.6814, 6.1498, 45.4147)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C31B7 #B7B22C
analogous
#2C76B7 #2C31B7 #6D2CB7
triadic
#2C31B7 #B72C31 #31B72C
tetradic
#2C31B7 #B72C76 #B7B22C #2CB76D
square
#2C31B7 #B72C76 #B7B22C #2CB76D
split-complementary
#2C31B7 #B76D2C #76B72C
monochromatic
#141754 #202486 #2C31B7 #4C51D4 #7E81E0

Accessibility & contrast

On white

9.42
#2C31B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2C31B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C31B7
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C31B7#FFFFFF#000000##FFFFFF
##2C31B71.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBB
Deuteranopia (green-blind)
#003FB5
Tritanopia (blue-blind)
#005871
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2c31b7;
/* rgb */ color: rgb(44, 49, 183);
/* oklch */ color: oklch(41.3% 0.204 271.6);
Tailwind
colors: {
  custom: {
    50: '#7c6ace',
    500: '#2c31b7',
    950: '#000000',
  },
}
SCSS
$custom: #2c31b7;
$custom-light: #7c6ace;
$custom-dark: #000000;
JSON
{
  "hex": "#2c31b7",
  "rgb": {
    "r": 44,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 237.842,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41318,
    "c": 0.20413,
    "h": 271.6
  },
  "luminance": 0.06151
}

Semantic roles & 50–950 ramp

primary
#2C31B7
secondary
#C8C576
accent
#DF43E4
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2C31B7

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

Preview Lab → · Contrast checker → · Palette generator →

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