#2C31BF#2C31BF

#2C31BF is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 42.2% C 0.214 H 271.2°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#2C31BF
RGBrgb(44, 49, 191)
HSLhsl(238, 63%, 46%)
HSVhsv(238, 77%, 75%)
CMYKcmyk(77%, 74.3%, 0%, 25.1%)
CIE-LABlab(30.62, 46.61, -73.84)
CIE-LCHlch(30.62, 87.32, 302.26°)
OKLaboklab(42.16% 0.0043 -0.2138)
OKLCHoklch(42.16% 0.214 271.2)
XYZxyz(11.5378, 6.4924, 49.9252)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C31BF #BFBA2C
analogous
#2C7ABF #2C31BF #702CBF
triadic
#2C31BF #BF2C31 #31BF2C
tetradic
#2C31BF #BF2C7A #BFBA2C #2CBF70
square
#2C31BF #BF2C7A #BFBA2C #2CBF70
split-complementary
#2C31BF #BF702C #7ABF2C
monochromatic
#15175C #21248D #2C31BF #5156D7 #8386E2

Accessibility & contrast

On white

9.14
#2C31BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2C31BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C31BF
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C31BF#FFFFFF#000000##FFFFFF
##2C31BF1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC3
Deuteranopia (green-blind)
#0041BC
Tritanopia (blue-blind)
#005B76
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2c31bf;
/* rgb */ color: rgb(44, 49, 191);
/* oklch */ color: oklch(42.2% 0.214 271.2);
Tailwind
colors: {
  custom: {
    50: '#7e6bd4',
    500: '#2c31bf',
    950: '#000000',
  },
}
SCSS
$custom: #2c31bf;
$custom-light: #7e6bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c31bf",
  "rgb": {
    "r": 44,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 237.959,
    "s": 62.553,
    "l": 46.078
  },
  "oklch": {
    "l": 0.4216,
    "c": 0.21384,
    "h": 271.2
  },
  "luminance": 0.06494
}

Semantic roles & 50–950 ramp

primary
#2C31BF
secondary
#CCC97B
accent
#E042E6
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #2C31BF

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

Preview Lab → · Contrast checker → · Palette generator →

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