#312CAE#312CAE

#312CAE is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.9% C 0.197 H 274.5°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#312CAE
RGBrgb(49, 44, 174)
HSLhsl(242, 60%, 43%)
HSVhsv(242, 75%, 68%)
CMYKcmyk(71.8%, 74.7%, 0%, 31.8%)
CIE-LABlab(28.14, 44.24, -67.83)
CIE-LCHlch(28.14, 80.98, 303.11°)
OKLaboklab(39.95% 0.0155 -0.1962)
OKLCHoklch(39.95% 0.197 274.5)
XYZxyz(9.8048, 5.5094, 40.5829)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CAE #A9AE2C
analogous
#2C68AE #312CAE #722CAE
triadic
#312CAE #AE312C #2CAE31
tetradic
#312CAE #AE2C68 #A9AE2C #2CAE72
square
#312CAE #AE2C68 #A9AE2C #2CAE72
split-complementary
#312CAE #AE722C #68AE2C
monochromatic
#15134C #23207D #312CAE #4C47D0 #7C78DD

Accessibility & contrast

On white

9.99
#312CAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#312CAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312CAE
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CAE#FFFFFF#000000##FFFFFF
##312CAE1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312cae;
/* rgb */ color: rgb(49, 44, 174);
/* oklch */ color: oklch(39.9% 0.197 274.5);
Tailwind
colors: {
  custom: {
    50: '#7c67c7',
    500: '#312cae',
    950: '#000000',
  },
}
SCSS
$custom: #312cae;
$custom-light: #7c67c7;
$custom-dark: #000000;
JSON
{
  "hex": "#312cae",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 174
  },
  "hsl": {
    "h": 242.308,
    "s": 59.633,
    "l": 42.745
  },
  "oklch": {
    "l": 0.39948,
    "c": 0.19677,
    "h": 274.5
  },
  "luminance": 0.0551
}

Semantic roles & 50–950 ramp

primary
#312CAE
secondary
#C1C571
accent
#E345DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312CAE

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

Preview Lab → · Contrast checker → · Palette generator →

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