#312CA6#312CA6

#312CA6 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.187 H 275.2°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#312CA6
RGBrgb(49, 44, 166)
HSLhsl(242, 58%, 41%)
HSVhsv(242, 73%, 65%)
CMYKcmyk(70.5%, 73.5%, 0%, 34.9%)
CIE-LABlab(27.32, 41.60, -64.37)
CIE-LCHlch(27.32, 76.64, 302.87°)
OKLaboklab(39.12% 0.017 -0.1861)
OKLCHoklch(39.12% 0.187 275.2)
XYZxyz(9.0480, 5.2067, 36.5972)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CA6 #A1A62C
analogous
#2C64A6 #312CA6 #6E2CA6
triadic
#312CA6 #A6312C #2CA631
tetradic
#312CA6 #A62C64 #A1A62C #2CA66E
square
#312CA6 #A62C64 #A1A62C #2CA66E
split-complementary
#312CA6 #A66E2C #64A62C
monochromatic
#141245 #231F76 #312CA6 #4842CD #7773DA

Accessibility & contrast

On white

10.29
#312CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#312CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312CA6
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CA6#FFFFFF#000000##FFFFFF
##312CA61.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312ca6;
/* rgb */ color: rgb(49, 44, 166);
/* oklch */ color: oklch(39.1% 0.187 275.2);
Tailwind
colors: {
  custom: {
    50: '#7b67c2',
    500: '#312ca6',
    950: '#000000',
  },
}
SCSS
$custom: #312ca6;
$custom-light: #7b67c2;
$custom-dark: #000000;
JSON
{
  "hex": "#312ca6",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 242.459,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39117,
    "c": 0.18688,
    "h": 275.2
  },
  "luminance": 0.05208
}

Semantic roles & 50–950 ramp

primary
#312CA6
secondary
#BEC16D
accent
#E146DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #312CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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