#312AAA#312AAA

#312AAA is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.2% C 0.194 H 275.1°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#312AAA
RGBrgb(49, 42, 170)
HSLhsl(243, 60%, 42%)
HSVhsv(243, 75%, 67%)
CMYKcmyk(71.2%, 75.3%, 0%, 33.3%)
CIE-LABlab(27.33, 44.05, -66.77)
CIE-LCHlch(27.33, 79.99, 303.41°)
OKLaboklab(39.25% 0.0173 -0.1931)
OKLCHoklch(39.25% 0.194 275.1)
XYZxyz(9.3479, 5.2103, 38.5355)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312AAA #A3AA2A
analogous
#2A63AA #312AAA #712AAA
triadic
#312AAA #AA312A #2AAA31
tetradic
#312AAA #AA2A63 #A3AA2A #2AAA71
square
#312AAA #AA2A63 #A3AA2A #2AAA71
split-complementary
#312AAA #AA712A #63AA2A
monochromatic
#151248 #231E79 #312AAA #4941D0 #7872DC

Accessibility & contrast

On white

10.28
#312AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#312AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312AAA
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312AAA#FFFFFF#000000##FFFFFF
##312AAA1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AE
Deuteranopia (green-blind)
#003BA8
Tritanopia (blue-blind)
#004F68
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #312aaa;
/* rgb */ color: rgb(49, 42, 170);
/* oklch */ color: oklch(39.2% 0.194 275.1);
Tailwind
colors: {
  custom: {
    50: '#7c66c5',
    500: '#312aaa',
    950: '#000000',
  },
}
SCSS
$custom: #312aaa;
$custom-light: #7c66c5;
$custom-dark: #000000;
JSON
{
  "hex": "#312aaa",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 243.281,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39248,
    "c": 0.19384,
    "h": 275.1
  },
  "luminance": 0.05211
}

Semantic roles & 50–950 ramp

primary
#312AAA
secondary
#BFC36C
accent
#E444DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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