#312AA2#312AA2

#312AA2 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.4% C 0.184 H 275.9°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#312AA2
RGBrgb(49, 42, 162)
HSLhsl(244, 59%, 40%)
HSVhsv(244, 74%, 64%)
CMYKcmyk(69.8%, 74.1%, 0%, 36.5%)
CIE-LABlab(26.50, 41.42, -63.30)
CIE-LCHlch(26.50, 75.65, 303.20°)
OKLaboklab(38.41% 0.0189 -0.183)
OKLCHoklch(38.41% 0.184 275.9)
XYZxyz(8.6140, 4.9167, 34.6705)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312AA2 #9BA22A
analogous
#2A5FA2 #312AA2 #6D2AA2
triadic
#312AA2 #A2312A #2AA231
tetradic
#312AA2 #A22A5F #9BA22A #2AA26D
square
#312AA2 #A22A5F #9BA22A #2AA26D
split-complementary
#312AA2 #A26D2A #5FA22A
monochromatic
#141141 #221D71 #312AA2 #453DCD #736DD9

Accessibility & contrast

On white

10.59
#312AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312AA2
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312AA2#FFFFFF#000000##FFFFFF
##312AA21.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A6
Deuteranopia (green-blind)
#0039A0
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #312aa2;
/* rgb */ color: rgb(49, 42, 162);
/* oklch */ color: oklch(38.4% 0.184 275.9);
Tailwind
colors: {
  custom: {
    50: '#7a65bf',
    500: '#312aa2',
    950: '#000000',
  },
}
SCSS
$custom: #312aa2;
$custom-light: #7a65bf;
$custom-dark: #000000;
JSON
{
  "hex": "#312aa2",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 243.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.38412,
    "c": 0.18394,
    "h": 275.9
  },
  "luminance": 0.04918
}

Semantic roles & 50–950 ramp

primary
#312AA2
secondary
#BBC068
accent
#E246D9
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #312AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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