#2C31B9#2C31B9

#2C31B9 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.5% C 0.207 H 271.5°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#2C31B9
RGBrgb(44, 49, 185)
HSLhsl(238, 62%, 45%)
HSVhsv(238, 76%, 73%)
CMYKcmyk(76.2%, 73.5%, 0%, 27.5%)
CIE-LABlab(29.99, 44.60, -71.33)
CIE-LCHlch(29.99, 84.13, 302.02°)
OKLaboklab(41.53% 0.0053 -0.2065)
OKLCHoklch(41.53% 0.207 271.5)
XYZxyz(10.8910, 6.2337, 46.5188)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C31B9 #B9B42C
analogous
#2C78B9 #2C31B9 #6D2CB9
triadic
#2C31B9 #B92C31 #31B92C
tetradic
#2C31B9 #B92C78 #B9B42C #2CB96D
square
#2C31B9 #B92C78 #B9B42C #2CB96D
split-complementary
#2C31B9 #B96D2C #78B92C
monochromatic
#141756 #202488 #2C31B9 #4D52D5 #7F82E1

Accessibility & contrast

On white

9.35
#2C31B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2C31B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C31B9
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C31B9#FFFFFF#000000##FFFFFF
##2C31B91.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBD
Deuteranopia (green-blind)
#0040B7
Tritanopia (blue-blind)
#005872
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2c31b9;
/* rgb */ color: rgb(44, 49, 185);
/* oklch */ color: oklch(41.5% 0.207 271.5);
Tailwind
colors: {
  custom: {
    50: '#7d6acf',
    500: '#2c31b9',
    950: '#000000',
  },
}
SCSS
$custom: #2c31b9;
$custom-light: #7d6acf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c31b9",
  "rgb": {
    "r": 44,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 237.872,
    "s": 61.572,
    "l": 44.902
  },
  "oklch": {
    "l": 0.41527,
    "c": 0.20657,
    "h": 271.5
  },
  "luminance": 0.06235
}

Semantic roles & 50–950 ramp

primary
#2C31B9
secondary
#C9C678
accent
#DF43E5
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2C31B9

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

Preview Lab → · Contrast checker → · Palette generator →

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