#312DA9#312DA9

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

Color values

HEX#312DA9
RGBrgb(49, 45, 169)
HSLhsl(242, 58%, 42%)
HSVhsv(242, 73%, 66%)
CMYKcmyk(71%, 73.4%, 0%, 33.7%)
CIE-LABlab(27.83, 42.02, -65.34)
CIE-LCHlch(27.83, 77.69, 302.74°)
OKLaboklab(39.57% 0.0159 -0.1889)
OKLCHoklch(39.57% 0.19 274.8)
XYZxyz(9.3641, 5.3934, 38.0760)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312DA9 #A5A92D
analogous
#2D67A9 #312DA9 #6F2DA9
triadic
#312DA9 #A9312D #2DA931
tetradic
#312DA9 #A92D67 #A5A92D #2DA96F
square
#312DA9 #A92D67 #A5A92D #2DA96F
split-complementary
#312DA9 #A96F2D #67A92D
monochromatic
#151348 #232079 #312DA9 #4A46CE #7976DA

Accessibility & contrast

On white

10.10
#312DA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#312DA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312DA9
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312DA9#FFFFFF#000000##FFFFFF
##312DA91.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312da9;
/* rgb */ color: rgb(49, 45, 169);
/* oklch */ color: oklch(39.6% 0.190 274.8);
Tailwind
colors: {
  custom: {
    50: '#7b67c4',
    500: '#312da9',
    950: '#000000',
  },
}
SCSS
$custom: #312da9;
$custom-light: #7b67c4;
$custom-dark: #000000;
JSON
{
  "hex": "#312da9",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 169
  },
  "hsl": {
    "h": 241.935,
    "s": 57.944,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39573,
    "c": 0.18959,
    "h": 274.8
  },
  "luminance": 0.05394
}

Semantic roles & 50–950 ramp

primary
#312DA9
secondary
#C0C26F
accent
#E147DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312DA9

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

Preview Lab → · Contrast checker → · Palette generator →

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