#312BAE#312BAE

#312BAE is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.8% C 0.198 H 274.6°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#312BAE
RGBrgb(49, 43, 174)
HSLhsl(243, 60%, 43%)
HSVhsv(243, 75%, 68%)
CMYKcmyk(71.8%, 75.3%, 0%, 31.8%)
CIE-LABlab(27.94, 44.80, -68.16)
CIE-LCHlch(27.94, 81.56, 303.32°)
OKLaboklab(39.81% 0.016 -0.1971)
OKLCHoklch(39.81% 0.198 274.6)
XYZxyz(9.7680, 5.4358, 40.5706)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312BAE #A8AE2B
analogous
#2B67AE #312BAE #722BAE
triadic
#312BAE #AE312B #2BAE31
tetradic
#312BAE #AE2B67 #A8AE2B #2BAE72
square
#312BAE #AE2B67 #A8AE2B #2BAE72
split-complementary
#312BAE #AE722B #67AE2B
monochromatic
#15134C #231F7D #312BAE #4C45D1 #7B76DD

Accessibility & contrast

On white

10.06
#312BAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#312BAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312BAE
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312BAE#FFFFFF#000000##FFFFFF
##312BAE1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B2
Deuteranopia (green-blind)
#003CAC
Tritanopia (blue-blind)
#00516A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #312bae;
/* rgb */ color: rgb(49, 43, 174);
/* oklch */ color: oklch(39.8% 0.198 274.6);
Tailwind
colors: {
  custom: {
    50: '#7c66c7',
    500: '#312bae',
    950: '#000000',
  },
}
SCSS
$custom: #312bae;
$custom-light: #7c66c7;
$custom-dark: #000000;
JSON
{
  "hex": "#312bae",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 174
  },
  "hsl": {
    "h": 242.748,
    "s": 60.369,
    "l": 42.549
  },
  "oklch": {
    "l": 0.39809,
    "c": 0.19776,
    "h": 274.6
  },
  "luminance": 0.05437
}

Semantic roles & 50–950 ramp

primary
#312BAE
secondary
#C1C570
accent
#E444DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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