#312FA5#312FA5

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

Color values

HEX#312FA5
RGBrgb(49, 47, 165)
HSLhsl(241, 56%, 42%)
HSVhsv(241, 72%, 65%)
CMYKcmyk(70.3%, 71.5%, 0%, 35.3%)
CIE-LABlab(27.85, 39.50, -62.89)
CIE-LCHlch(27.85, 74.26, 302.13°)
OKLaboklab(39.47% 0.0154 -0.1818)
OKLCHoklch(39.47% 0.182 274.8)
XYZxyz(9.0724, 5.4018, 36.1545)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FA5 #A3A52F
analogous
#2F68A5 #312FA5 #6C2FA5
triadic
#312FA5 #A5312F #2FA531
tetradic
#312FA5 #A52F68 #A3A52F #2FA56C
square
#312FA5 #A52F68 #A3A52F #2FA56C
split-complementary
#312FA5 #A56C2F #68A52F
monochromatic
#151446 #232175 #312FA5 #4947CB #7876D8

Accessibility & contrast

On white

10.09
#312FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#312FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FA5
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FA5#FFFFFF#000000##FFFFFF
##312FA51.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#003CA3
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #312fa5;
/* rgb */ color: rgb(49, 47, 165);
/* oklch */ color: oklch(39.5% 0.182 274.8);
Tailwind
colors: {
  custom: {
    50: '#7a69c1',
    500: '#312fa5',
    950: '#000000',
  },
}
SCSS
$custom: #312fa5;
$custom-light: #7a69c1;
$custom-dark: #000000;
JSON
{
  "hex": "#312fa5",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 241.017,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39469,
    "c": 0.18243,
    "h": 274.8
  },
  "luminance": 0.05403
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #312FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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