#312FA6#312FA6

#312FA6 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.6% C 0.184 H 274.8°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#312FA6
RGBrgb(49, 47, 166)
HSLhsl(241, 56%, 42%)
HSVhsv(241, 72%, 65%)
CMYKcmyk(70.5%, 71.7%, 0%, 34.9%)
CIE-LABlab(27.95, 39.84, -63.33)
CIE-LCHlch(27.95, 74.82, 302.17°)
OKLaboklab(39.57% 0.0152 -0.1831)
OKLCHoklch(39.57% 0.184 274.8)
XYZxyz(9.1638, 5.4383, 36.6358)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FA6 #A4A62F
analogous
#2F69A6 #312FA6 #6C2FA6
triadic
#312FA6 #A6312F #2FA631
tetradic
#312FA6 #A62F69 #A4A62F #2FA66C
square
#312FA6 #A62F69 #A4A62F #2FA66C
split-complementary
#312FA6 #A66C2F #69A62F
monochromatic
#151447 #232176 #312FA6 #4947CB #7977D8

Accessibility & contrast

On white

10.06
#312FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#312FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FA6
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FA6#FFFFFF#000000##FFFFFF
##312FA61.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312fa6;
/* rgb */ color: rgb(49, 47, 166);
/* oklch */ color: oklch(39.6% 0.184 274.8);
Tailwind
colors: {
  custom: {
    50: '#7a69c2',
    500: '#312fa6',
    950: '#000000',
  },
}
SCSS
$custom: #312fa6;
$custom-light: #7a69c2;
$custom-dark: #000000;
JSON
{
  "hex": "#312fa6",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 241.008,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39569,
    "c": 0.1837,
    "h": 274.8
  },
  "luminance": 0.05439
}

Semantic roles & 50–950 ramp

primary
#312FA6
secondary
#BFC170
accent
#DF49DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #312FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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