#2C31B8#2C31B8

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

Color values

HEX#2C31B8
RGBrgb(44, 49, 184)
HSLhsl(238, 61%, 45%)
HSVhsv(238, 76%, 72%)
CMYKcmyk(76.1%, 73.4%, 0%, 27.8%)
CIE-LABlab(29.89, 44.27, -70.91)
CIE-LCHlch(29.89, 83.59, 301.97°)
OKLaboklab(41.42% 0.0055 -0.2053)
OKLCHoklch(41.42% 0.205 271.5)
XYZxyz(10.7858, 6.1916, 45.9648)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C31B8 #B8B32C
analogous
#2C77B8 #2C31B8 #6D2CB8
triadic
#2C31B8 #B82C31 #31B82C
tetradic
#2C31B8 #B82C77 #B8B32C #2CB86D
square
#2C31B8 #B82C77 #B8B32C #2CB86D
split-complementary
#2C31B8 #B86D2C #77B82C
monochromatic
#141755 #202487 #2C31B8 #4D52D4 #7E82E0

Accessibility & contrast

On white

9.38
#2C31B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2C31B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C31B8
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C31B8#FFFFFF#000000##FFFFFF
##2C31B81.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBC
Deuteranopia (green-blind)
#003FB6
Tritanopia (blue-blind)
#005872
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2c31b8;
/* rgb */ color: rgb(44, 49, 184);
/* oklch */ color: oklch(41.4% 0.205 271.5);
Tailwind
colors: {
  custom: {
    50: '#7c6acf',
    500: '#2c31b8',
    950: '#000000',
  },
}
SCSS
$custom: #2c31b8;
$custom-light: #7c6acf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c31b8",
  "rgb": {
    "r": 44,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 237.857,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.41422,
    "c": 0.20535,
    "h": 271.5
  },
  "luminance": 0.06193
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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