#312BAA#312BAA

#312BAA is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.4% C 0.193 H 275.0°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#312BAA
RGBrgb(49, 43, 170)
HSLhsl(243, 60%, 42%)
HSVhsv(243, 75%, 67%)
CMYKcmyk(71.2%, 74.7%, 0%, 33.3%)
CIE-LABlab(27.52, 43.49, -66.44)
CIE-LCHlch(27.52, 79.41, 303.21°)
OKLaboklab(39.39% 0.0168 -0.1921)
OKLCHoklch(39.39% 0.193 275)
XYZxyz(9.3838, 5.2821, 38.5474)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312BAA #A4AA2B
analogous
#2B64AA #312BAA #712BAA
triadic
#312BAA #AA312B #2BAA31
tetradic
#312BAA #AA2B64 #A4AA2B #2BAA71
square
#312BAA #AA2B64 #A4AA2B #2BAA71
split-complementary
#312BAA #AA712B #64AA2B
monochromatic
#151248 #231F79 #312BAA #4943CF #7974DC

Accessibility & contrast

On white

10.21
#312BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#312BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312BAA
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312BAA#FFFFFF#000000##FFFFFF
##312BAA1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312baa;
/* rgb */ color: rgb(49, 43, 170);
/* oklch */ color: oklch(39.4% 0.193 275.0);
Tailwind
colors: {
  custom: {
    50: '#7c66c5',
    500: '#312baa',
    950: '#000000',
  },
}
SCSS
$custom: #312baa;
$custom-light: #7c66c5;
$custom-dark: #000000;
JSON
{
  "hex": "#312baa",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 170
  },
  "hsl": {
    "h": 242.835,
    "s": 59.624,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39388,
    "c": 0.19285,
    "h": 275
  },
  "luminance": 0.05283
}

Semantic roles & 50–950 ramp

primary
#312BAA
secondary
#BFC36E
accent
#E345DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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