#312EA6#312EA6

#312EA6 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.4% C 0.185 H 274.9°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#312EA6
RGBrgb(49, 46, 166)
HSLhsl(242, 57%, 42%)
HSVhsv(242, 72%, 65%)
CMYKcmyk(70.5%, 72.3%, 0%, 34.9%)
CIE-LABlab(27.73, 40.43, -63.68)
CIE-LCHlch(27.73, 75.43, 302.41°)
OKLaboklab(39.42% 0.0158 -0.1841)
OKLCHoklch(39.42% 0.185 274.9)
XYZxyz(9.1243, 5.3593, 36.6226)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312EA6 #A3A62E
analogous
#2E67A6 #312EA6 #6D2EA6
triadic
#312EA6 #A6312E #2EA631
tetradic
#312EA6 #A62E67 #A3A62E #2EA66D
square
#312EA6 #A62E67 #A3A62E #2EA66D
split-complementary
#312EA6 #A66D2E #67A62E
monochromatic
#151346 #232176 #312EA6 #4946CC #7876D9

Accessibility & contrast

On white

10.14
#312EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#312EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312EA6
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312EA6#FFFFFF#000000##FFFFFF
##312EA61.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#003CA4
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #312ea6;
/* rgb */ color: rgb(49, 46, 166);
/* oklch */ color: oklch(39.4% 0.185 274.9);
Tailwind
colors: {
  custom: {
    50: '#7a68c2',
    500: '#312ea6',
    950: '#000000',
  },
}
SCSS
$custom: #312ea6;
$custom-light: #7a68c2;
$custom-dark: #000000;
JSON
{
  "hex": "#312ea6",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 241.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39416,
    "c": 0.18477,
    "h": 274.9
  },
  "luminance": 0.0536
}

Semantic roles & 50–950 ramp

primary
#312EA6
secondary
#BFC16F
accent
#E048DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #312EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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