#312EE1#312EE1

#312EE1 is a mid, highly saturated blue. Relative luminance 0.080; OKLCH L 45.7% C 0.254 H 271.0°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#312EE1
RGBrgb(49, 46, 225)
HSLhsl(241, 75%, 53%)
HSVhsv(241, 80%, 88%)
CMYKcmyk(78.2%, 79.6%, 0%, 11.8%)
CIE-LABlab(34.07, 59.28, -87.87)
CIE-LCHlch(34.07, 105.99, 304.01°)
OKLaboklab(45.74% 0.0043 -0.2544)
OKLCHoklch(45.74% 0.254 271)
XYZxyz(15.8296, 8.0414, 71.9374)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312EE1 #DEE12E
analogous
#2E84E1 #312EE1 #8B2EE1
triadic
#312EE1 #E1312E #2EE131
tetradic
#312EE1 #E12E84 #DEE12E #2EE18B
square
#312EE1 #E12E84 #DEE12E #2EE18B
split-complementary
#312EE1 #E18B2E #84E12E
monochromatic
#151382 #1D1AB7 #312EE1 #6664E9 #9A99F0

Accessibility & contrast

On white

8.05
#312EE1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#312EE1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312EE1
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312EE1#FFFFFF#000000##FFFFFF
##312EE11.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059E6
Deuteranopia (green-blind)
#0047DE
Tritanopia (blue-blind)
#006688
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #312ee1;
/* rgb */ color: rgb(49, 46, 225);
/* oklch */ color: oklch(45.7% 0.254 271.0);
Tailwind
colors: {
  custom: {
    50: '#886bec',
    500: '#312ee1',
    950: '#000000',
  },
}
SCSS
$custom: #312ee1;
$custom-light: #886bec;
$custom-dark: #000000;
JSON
{
  "hex": "#312ee1",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 225
  },
  "hsl": {
    "h": 241.006,
    "s": 74.895,
    "l": 53.137
  },
  "oklch": {
    "l": 0.45743,
    "c": 0.2544,
    "h": 271
  },
  "luminance": 0.08043
}

Semantic roles & 50–950 ramp

primary
#312EE1
secondary
#DBDC8F
accent
#F236EE
background
#F9F6FE
surface
#F2EBFD
border
#CCC6D5
text
#0E0716
muted
#7E7A84

Preview Lab

Preview with #312EE1

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

Preview Lab → · Contrast checker → · Palette generator →

#312EE1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva