#312CA9#312CA9

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

Color values

HEX#312CA9
RGBrgb(49, 44, 169)
HSLhsl(242, 59%, 42%)
HSVhsv(242, 74%, 66%)
CMYKcmyk(71%, 74%, 0%, 33.7%)
CIE-LABlab(27.62, 42.59, -65.68)
CIE-LCHlch(27.62, 78.28, 302.96°)
OKLaboklab(39.43% 0.0164 -0.1899)
OKLCHoklch(39.43% 0.191 274.9)
XYZxyz(9.3264, 5.3180, 38.0634)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CA9 #A4A92C
analogous
#2C66A9 #312CA9 #702CA9
triadic
#312CA9 #A9312C #2CA931
tetradic
#312CA9 #A92C66 #A4A92C #2CA970
square
#312CA9 #A92C66 #A4A92C #2CA970
split-complementary
#312CA9 #A9702C #66A92C
monochromatic
#151348 #231F78 #312CA9 #4944CE #7974DB

Accessibility & contrast

On white

10.18
#312CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312CA9
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CA9#FFFFFF#000000##FFFFFF
##312CA91.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AD
Deuteranopia (green-blind)
#003BA7
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #312ca9;
/* rgb */ color: rgb(49, 44, 169);
/* oklch */ color: oklch(39.4% 0.191 274.9);
Tailwind
colors: {
  custom: {
    50: '#7b67c4',
    500: '#312ca9',
    950: '#000000',
  },
}
SCSS
$custom: #312ca9;
$custom-light: #7b67c4;
$custom-dark: #000000;
JSON
{
  "hex": "#312ca9",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 169
  },
  "hsl": {
    "h": 242.4,
    "s": 58.685,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39427,
    "c": 0.19061,
    "h": 274.9
  },
  "luminance": 0.05319
}

Semantic roles & 50–950 ramp

primary
#312CA9
secondary
#BFC36E
accent
#E246DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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