#312AA1#312AA1

#312AA1 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.183 H 276.0°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#312AA1
RGBrgb(49, 42, 161)
HSLhsl(244, 59%, 40%)
HSVhsv(244, 74%, 63%)
CMYKcmyk(69.6%, 73.9%, 0%, 36.9%)
CIE-LABlab(26.39, 41.09, -62.86)
CIE-LCHlch(26.39, 75.10, 303.17°)
OKLaboklab(38.31% 0.0191 -0.1817)
OKLCHoklch(38.31% 0.183 276)
XYZxyz(8.5255, 4.8813, 34.2042)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312AA1 #9AA12A
analogous
#2A5FA1 #312AA1 #6C2AA1
triadic
#312AA1 #A1312A #2AA131
tetradic
#312AA1 #A12A5F #9AA12A #2AA16C
square
#312AA1 #A12A5F #9AA12A #2AA16C
split-complementary
#312AA1 #A16C2A #5FA12A
monochromatic
#131140 #221D70 #312AA1 #453CCC #736DD9

Accessibility & contrast

On white

10.63
#312AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#312AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312AA1
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312AA1#FFFFFF#000000##FFFFFF
##312AA11.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A4
Deuteranopia (green-blind)
#00399F
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #312aa1;
/* rgb */ color: rgb(49, 42, 161);
/* oklch */ color: oklch(38.3% 0.183 276.0);
Tailwind
colors: {
  custom: {
    50: '#7a65be',
    500: '#312aa1',
    950: '#000000',
  },
}
SCSS
$custom: #312aa1;
$custom-light: #7a65be;
$custom-dark: #000000;
JSON
{
  "hex": "#312aa1",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 243.529,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38309,
    "c": 0.18268,
    "h": 276
  },
  "luminance": 0.04882
}

Semantic roles & 50–950 ramp

primary
#312AA1
secondary
#BAC067
accent
#E246D9
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #312AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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