#2E31BF#2E31BF

#2E31BF is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 42.3% C 0.213 H 271.7°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#2E31BF
RGBrgb(46, 49, 191)
HSLhsl(239, 61%, 46%)
HSVhsv(239, 76%, 75%)
CMYKcmyk(75.9%, 74.3%, 0%, 25.1%)
CIE-LABlab(30.73, 46.77, -73.66)
CIE-LCHlch(30.73, 87.25, 302.42°)
OKLaboklab(42.27% 0.0065 -0.2132)
OKLCHoklch(42.27% 0.213 271.7)
XYZxyz(11.6258, 6.5378, 49.9293)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E31BF #BFBC2E
analogous
#2E7ABF #2E31BF #742EBF
triadic
#2E31BF #BF2E31 #31BF2E
tetradic
#2E31BF #BF2E7A #BFBC2E #2EBF74
square
#2E31BF #BF2E7A #BFBC2E #2EBF74
split-complementary
#2E31BF #BF742E #7ABF2E
monochromatic
#16185C #22248E #2E31BF #5457D6 #8688E2

Accessibility & contrast

On white

9.10
#2E31BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2E31BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E31BF
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E31BF#FFFFFF#000000##FFFFFF
##2E31BF1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e31bf;
/* rgb */ color: rgb(46, 49, 191);
/* oklch */ color: oklch(42.3% 0.213 271.7);
Tailwind
colors: {
  custom: {
    50: '#7f6bd4',
    500: '#2e31bf',
    950: '#000000',
  },
}
SCSS
$custom: #2e31bf;
$custom-light: #7f6bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e31bf",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 238.759,
    "s": 61.181,
    "l": 46.471
  },
  "oklch": {
    "l": 0.42266,
    "c": 0.21333,
    "h": 271.7
  },
  "luminance": 0.06539
}

Semantic roles & 50–950 ramp

primary
#2E31BF
secondary
#CBCA7E
accent
#E144E4
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #2E31BF

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

Preview Lab → · Contrast checker → · Palette generator →

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