#312ED0#312ED0

#312ED0 is a dark, highly saturated blue. Relative luminance 0.072; OKLCH L 43.9% C 0.235 H 271.9°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#312ED0
RGBrgb(49, 46, 208)
HSLhsl(241, 64%, 50%)
HSVhsv(241, 78%, 82%)
CMYKcmyk(76.4%, 77.9%, 0%, 18.4%)
CIE-LABlab(32.17, 54.06, -81.22)
CIE-LCHlch(32.17, 97.57, 303.65°)
OKLaboklab(43.86% 0.0078 -0.2351)
OKLCHoklch(43.86% 0.235 271.9)
XYZxyz(13.6249, 7.1595, 60.3261)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312ED0 #CDD02E
analogous
#2E7CD0 #312ED0 #822ED0
triadic
#312ED0 #D0312E #2ED031
tetradic
#312ED0 #D02E7C #CDD02E #2ED082
square
#312ED0 #D02E7C #CDD02E #2ED082
split-complementary
#312ED0 #D0822E #7CD02E
monochromatic
#19186C #25239E #312ED0 #625FDC #9392E7

Accessibility & contrast

On white

8.63
#312ED0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#312ED0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312ED0
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312ED0#FFFFFF#000000##FFFFFF
##312ED01.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054D5
Deuteranopia (green-blind)
#0043CD
Tritanopia (blue-blind)
#00607F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #312ed0;
/* rgb */ color: rgb(49, 46, 208);
/* oklch */ color: oklch(43.9% 0.235 271.9);
Tailwind
colors: {
  custom: {
    50: '#846ae0',
    500: '#312ed0',
    950: '#000000',
  },
}
SCSS
$custom: #312ed0;
$custom-light: #846ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#312ed0",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 208
  },
  "hsl": {
    "h": 241.111,
    "s": 63.78,
    "l": 49.804
  },
  "oklch": {
    "l": 0.43863,
    "c": 0.23522,
    "h": 271.9
  },
  "luminance": 0.07161
}

Semantic roles & 50–950 ramp

primary
#312ED0
secondary
#D0D288
accent
#E741E4
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #312ED0

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

Preview Lab → · Contrast checker → · Palette generator →

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