#312CAA#312CAA

#312CAA is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.5% C 0.192 H 274.9°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#312CAA
RGBrgb(49, 44, 170)
HSLhsl(242, 59%, 42%)
HSVhsv(242, 74%, 67%)
CMYKcmyk(71.2%, 74.1%, 0%, 33.3%)
CIE-LABlab(27.73, 42.92, -66.11)
CIE-LCHlch(27.73, 78.82, 302.99°)
OKLaboklab(39.53% 0.0163 -0.1912)
OKLCHoklch(39.53% 0.192 274.9)
XYZxyz(9.4206, 5.3557, 38.5597)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CAA #A5AA2C
analogous
#2C66AA #312CAA #702CAA
triadic
#312CAA #AA312C #2CAA31
tetradic
#312CAA #AA2C66 #A5AA2C #2CAA70
square
#312CAA #AA2C66 #A5AA2C #2CAA70
split-complementary
#312CAA #AA702C #66AA2C
monochromatic
#151349 #231F79 #312CAA #4A44CF #7975DB

Accessibility & contrast

On white

10.14
#312CAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#312CAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312CAA
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CAA#FFFFFF#000000##FFFFFF
##312CAA1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AE
Deuteranopia (green-blind)
#003CA8
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #312caa;
/* rgb */ color: rgb(49, 44, 170);
/* oklch */ color: oklch(39.5% 0.192 274.9);
Tailwind
colors: {
  custom: {
    50: '#7b67c5',
    500: '#312caa',
    950: '#000000',
  },
}
SCSS
$custom: #312caa;
$custom-light: #7b67c5;
$custom-dark: #000000;
JSON
{
  "hex": "#312caa",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 170
  },
  "hsl": {
    "h": 242.381,
    "s": 58.879,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39531,
    "c": 0.19185,
    "h": 274.9
  },
  "luminance": 0.05357
}

Semantic roles & 50–950 ramp

primary
#312CAA
secondary
#C0C36F
accent
#E246DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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