#312AAE#312AAE

#312AAE is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.7% C 0.199 H 274.8°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#312AAE
RGBrgb(49, 42, 174)
HSLhsl(243, 61%, 42%)
HSVhsv(243, 76%, 68%)
CMYKcmyk(71.8%, 75.9%, 0%, 31.8%)
CIE-LABlab(27.75, 45.35, -68.48)
CIE-LCHlch(27.75, 82.13, 303.51°)
OKLaboklab(39.67% 0.0165 -0.198)
OKLCHoklch(39.67% 0.199 274.8)
XYZxyz(9.7320, 5.3639, 40.5587)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312AAE #A7AE2A
analogous
#2A65AE #312AAE #732AAE
triadic
#312AAE #AE312A #2AAE31
tetradic
#312AAE #AE2A65 #A7AE2A #2AAE73
square
#312AAE #AE2A65 #A7AE2A #2AAE73
split-complementary
#312AAE #AE732A #65AE2A
monochromatic
#15124B #231E7D #312AAE #4B43D2 #7A75DE

Accessibility & contrast

On white

10.13
#312AAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312AAE
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312AAE#FFFFFF#000000##FFFFFF
##312AAE1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B2
Deuteranopia (green-blind)
#003BAC
Tritanopia (blue-blind)
#00516A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #312aae;
/* rgb */ color: rgb(49, 42, 174);
/* oklch */ color: oklch(39.7% 0.199 274.8);
Tailwind
colors: {
  custom: {
    50: '#7d66c7',
    500: '#312aae',
    950: '#000000',
  },
}
SCSS
$custom: #312aae;
$custom-light: #7d66c7;
$custom-dark: #000000;
JSON
{
  "hex": "#312aae",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 174
  },
  "hsl": {
    "h": 243.182,
    "s": 61.111,
    "l": 42.353
  },
  "oklch": {
    "l": 0.39671,
    "c": 0.19871,
    "h": 274.8
  },
  "luminance": 0.05365
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #312AAE

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

Preview Lab → · Contrast checker → · Palette generator →

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