#312EA3#312EA3

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

Color values

HEX#312EA3
RGBrgb(49, 46, 163)
HSLhsl(242, 56%, 41%)
HSVhsv(242, 72%, 64%)
CMYKcmyk(69.9%, 71.8%, 0%, 36.1%)
CIE-LABlab(27.44, 39.42, -62.36)
CIE-LCHlch(27.44, 73.77, 302.30°)
OKLaboklab(39.11% 0.0163 -0.1802)
OKLCHoklch(39.11% 0.181 275.2)
XYZxyz(8.8523, 5.2505, 35.1902)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312EA3 #A0A32E
analogous
#2E65A3 #312EA3 #6B2EA3
triadic
#312EA3 #A3312E #2EA331
tetradic
#312EA3 #A32E65 #A0A32E #2EA36B
square
#312EA3 #A32E65 #A0A32E #2EA36B
split-complementary
#312EA3 #A36B2E #65A32E
monochromatic
#141344 #232173 #312EA3 #4744CA #7674D8

Accessibility & contrast

On white

10.24
#312EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#312EA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312EA3
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312EA3#FFFFFF#000000##FFFFFF
##312EA31.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312ea3;
/* rgb */ color: rgb(49, 46, 163);
/* oklch */ color: oklch(39.1% 0.181 275.2);
Tailwind
colors: {
  custom: {
    50: '#7a68bf',
    500: '#312ea3',
    950: '#000000',
  },
}
SCSS
$custom: #312ea3;
$custom-light: #7a68bf;
$custom-dark: #000000;
JSON
{
  "hex": "#312ea3",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 241.538,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39113,
    "c": 0.18097,
    "h": 275.2
  },
  "luminance": 0.05251
}

Semantic roles & 50–950 ramp

primary
#312EA3
secondary
#BDBF6D
accent
#DF49DB
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #312EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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