#312DA3#312DA3

#312DA3 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.0% C 0.182 H 275.3°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#312DA3
RGBrgb(49, 45, 163)
HSLhsl(242, 57%, 41%)
HSVhsv(242, 72%, 64%)
CMYKcmyk(69.9%, 72.4%, 0%, 36.1%)
CIE-LABlab(27.22, 40.01, -62.71)
CIE-LCHlch(27.22, 74.39, 302.54°)
OKLaboklab(38.96% 0.017 -0.1812)
OKLCHoklch(38.96% 0.182 275.3)
XYZxyz(8.8137, 5.1733, 35.1773)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312DA3 #9FA32D
analogous
#2D64A3 #312DA3 #6C2DA3
triadic
#312DA3 #A3312D #2DA331
tetradic
#312DA3 #A32D64 #9FA32D #2DA36C
square
#312DA3 #A32D64 #9FA32D #2DA36C
split-complementary
#312DA3 #A36C2D #64A32D
monochromatic
#141343 #232073 #312DA3 #4742CB #7672D8

Accessibility & contrast

On white

10.32
#312DA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#312DA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312DA3
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312DA3#FFFFFF#000000##FFFFFF
##312DA31.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A7
Deuteranopia (green-blind)
#003BA1
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #312da3;
/* rgb */ color: rgb(49, 45, 163);
/* oklch */ color: oklch(39.0% 0.182 275.3);
Tailwind
colors: {
  custom: {
    50: '#7a67bf',
    500: '#312da3',
    950: '#000000',
  },
}
SCSS
$custom: #312da3;
$custom-light: #7a67bf;
$custom-dark: #000000;
JSON
{
  "hex": "#312da3",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 163
  },
  "hsl": {
    "h": 242.034,
    "s": 56.731,
    "l": 40.784
  },
  "oklch": {
    "l": 0.3896,
    "c": 0.18204,
    "h": 275.3
  },
  "luminance": 0.05174
}

Semantic roles & 50–950 ramp

primary
#312DA3
secondary
#BDC06C
accent
#E048DB
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #312DA3

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

Preview Lab → · Contrast checker → · Palette generator →

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