#312AA5#312AA5

#312AA5 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.7% C 0.188 H 275.6°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#312AA5
RGBrgb(49, 42, 165)
HSLhsl(243, 59%, 41%)
HSVhsv(243, 75%, 65%)
CMYKcmyk(70.3%, 74.5%, 0%, 35.3%)
CIE-LABlab(26.80, 42.41, -64.61)
CIE-LCHlch(26.80, 77.29, 303.28°)
OKLaboklab(38.72% 0.0183 -0.1868)
OKLCHoklch(38.72% 0.188 275.6)
XYZxyz(8.8839, 5.0247, 36.0917)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312AA5 #9EA52A
analogous
#2A60A5 #312AA5 #6F2AA5
triadic
#312AA5 #A5312A #2AA531
tetradic
#312AA5 #A52A60 #9EA52A #2AA56F
square
#312AA5 #A52A60 #9EA52A #2AA56F
split-complementary
#312AA5 #A56F2A #60A52A
monochromatic
#141143 #231E74 #312AA5 #463ECE #756FDA

Accessibility & contrast

On white

10.47
#312AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#312AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312AA5
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312AA5#FFFFFF#000000##FFFFFF
##312AA51.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A9
Deuteranopia (green-blind)
#003AA3
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #312aa5;
/* rgb */ color: rgb(49, 42, 165);
/* oklch */ color: oklch(38.7% 0.188 275.6);
Tailwind
colors: {
  custom: {
    50: '#7a65c1',
    500: '#312aa5',
    950: '#000000',
  },
}
SCSS
$custom: #312aa5;
$custom-light: #7a65c1;
$custom-dark: #000000;
JSON
{
  "hex": "#312aa5",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 243.415,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38724,
    "c": 0.18768,
    "h": 275.6
  },
  "luminance": 0.05026
}

Semantic roles & 50–950 ramp

primary
#312AA5
secondary
#BCC169
accent
#E345DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #312AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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