#312EA4#312EA4

#312EA4 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.2% C 0.182 H 275.1°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#312EA4
RGBrgb(49, 46, 164)
HSLhsl(242, 56%, 41%)
HSVhsv(242, 72%, 64%)
CMYKcmyk(70.1%, 72%, 0%, 35.7%)
CIE-LABlab(27.54, 39.75, -62.80)
CIE-LCHlch(27.54, 74.33, 302.33°)
OKLaboklab(39.21% 0.0162 -0.1815)
OKLCHoklch(39.21% 0.182 275.1)
XYZxyz(8.9422, 5.2865, 35.6639)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312EA4 #A1A42E
analogous
#2E66A4 #312EA4 #6C2EA4
triadic
#312EA4 #A4312E #2EA431
tetradic
#312EA4 #A42E66 #A1A42E #2EA46C
square
#312EA4 #A42E66 #A1A42E #2EA46C
split-complementary
#312EA4 #A46C2E #66A42E
monochromatic
#141344 #232174 #312EA4 #4845CB #7774D8

Accessibility & contrast

On white

10.21
#312EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#312EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312EA4
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312EA4#FFFFFF#000000##FFFFFF
##312EA41.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#003CA2
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #312ea4;
/* rgb */ color: rgb(49, 46, 164);
/* oklch */ color: oklch(39.2% 0.182 275.1);
Tailwind
colors: {
  custom: {
    50: '#7a68c0',
    500: '#312ea4',
    950: '#000000',
  },
}
SCSS
$custom: #312ea4;
$custom-light: #7a68c0;
$custom-dark: #000000;
JSON
{
  "hex": "#312ea4",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 241.525,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39214,
    "c": 0.18224,
    "h": 275.1
  },
  "luminance": 0.05287
}

Semantic roles & 50–950 ramp

primary
#312EA4
secondary
#BEC06E
accent
#DF48DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #312EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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