#312FA4#312FA4

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

Color values

HEX#312FA4
RGBrgb(49, 47, 164)
HSLhsl(241, 55%, 41%)
HSVhsv(241, 71%, 64%)
CMYKcmyk(70.1%, 71.3%, 0%, 35.7%)
CIE-LABlab(27.75, 39.16, -62.45)
CIE-LCHlch(27.75, 73.71, 302.09°)
OKLaboklab(39.37% 0.0156 -0.1805)
OKLCHoklch(39.37% 0.181 274.9)
XYZxyz(8.9818, 5.3655, 35.6771)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FA4 #A2A42F
analogous
#2F68A4 #312FA4 #6C2FA4
triadic
#312FA4 #A4312F #2FA431
tetradic
#312FA4 #A42F68 #A2A42F #2FA46C
square
#312FA4 #A42F68 #A2A42F #2FA46C
split-complementary
#312FA4 #A46C2F #68A42F
monochromatic
#151445 #232174 #312FA4 #4846CA #7776D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##312FA4#FFFFFF#000000##FFFFFF
##312FA41.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)
#0047A8
Deuteranopia (green-blind)
#003CA2
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #312fa4;
/* rgb */ color: rgb(49, 47, 164);
/* oklch */ color: oklch(39.4% 0.181 274.9);
Tailwind
colors: {
  custom: {
    50: '#7a69c0',
    500: '#312fa4',
    950: '#000000',
  },
}
SCSS
$custom: #312fa4;
$custom-light: #7a69c0;
$custom-dark: #000000;
JSON
{
  "hex": "#312fa4",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 241.026,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39368,
    "c": 0.18115,
    "h": 274.9
  },
  "luminance": 0.05366
}

Semantic roles & 50–950 ramp

primary
#312FA4
secondary
#BEC06F
accent
#DF49DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #312FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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