#312DAE#312DAE

#312DAE is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.1% C 0.196 H 274.4°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#312DAE
RGBrgb(49, 45, 174)
HSLhsl(242, 59%, 43%)
HSVhsv(242, 74%, 68%)
CMYKcmyk(71.8%, 74.1%, 0%, 31.8%)
CIE-LABlab(28.34, 43.68, -67.50)
CIE-LCHlch(28.34, 80.40, 302.91°)
OKLaboklab(40.09% 0.015 -0.1952)
OKLCHoklch(40.09% 0.196 274.4)
XYZxyz(9.8425, 5.5848, 40.5955)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312DAE #AAAE2D
analogous
#2D6AAE #312DAE #712DAE
triadic
#312DAE #AE312D #2DAE31
tetradic
#312DAE #AE2D6A #AAAE2D #2DAE71
square
#312DAE #AE2D6A #AAAE2D #2DAE71
split-complementary
#312DAE #AE712D #6AAE2D
monochromatic
#16144D #23207D #312DAE #4D48D0 #7C79DC

Accessibility & contrast

On white

9.92
#312DAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#312DAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312DAE
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312DAE#FFFFFF#000000##FFFFFF
##312DAE1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B2
Deuteranopia (green-blind)
#003DAC
Tritanopia (blue-blind)
#00526B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #312dae;
/* rgb */ color: rgb(49, 45, 174);
/* oklch */ color: oklch(40.1% 0.196 274.4);
Tailwind
colors: {
  custom: {
    50: '#7c68c7',
    500: '#312dae',
    950: '#000000',
  },
}
SCSS
$custom: #312dae;
$custom-light: #7c68c7;
$custom-dark: #000000;
JSON
{
  "hex": "#312dae",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 174
  },
  "hsl": {
    "h": 241.86,
    "s": 58.904,
    "l": 42.941
  },
  "oklch": {
    "l": 0.40091,
    "c": 0.19578,
    "h": 274.4
  },
  "luminance": 0.05586
}

Semantic roles & 50–950 ramp

primary
#312DAE
secondary
#C2C472
accent
#E246DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312DAE

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

Preview Lab → · Contrast checker → · Palette generator →

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