#312FA3#312FA3

#312FA3 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.3% C 0.180 H 275.0°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#312FA3
RGBrgb(49, 47, 163)
HSLhsl(241, 55%, 41%)
HSVhsv(241, 71%, 64%)
CMYKcmyk(69.9%, 71.2%, 0%, 36.1%)
CIE-LABlab(27.65, 38.82, -62.00)
CIE-LCHlch(27.65, 73.15, 302.05°)
OKLaboklab(39.27% 0.0157 -0.1792)
OKLCHoklch(39.27% 0.18 275)
XYZxyz(8.8918, 5.3295, 35.2033)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FA3 #A1A32F
analogous
#2F67A3 #312FA3 #6B2FA3
triadic
#312FA3 #A3312F #2FA331
tetradic
#312FA3 #A32F67 #A1A32F #2FA36B
square
#312FA3 #A32F67 #A1A32F #2FA36B
split-complementary
#312FA3 #A36B2F #67A32F
monochromatic
#141444 #232173 #312FA3 #4846CA #7775D7

Accessibility & contrast

On white

10.16
#312FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312FA3
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FA3#FFFFFF#000000##FFFFFF
##312FA31.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A6
Deuteranopia (green-blind)
#003CA1
Tritanopia (blue-blind)
#004F65
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #312fa3;
/* rgb */ color: rgb(49, 47, 163);
/* oklch */ color: oklch(39.3% 0.180 275.0);
Tailwind
colors: {
  custom: {
    50: '#7a69bf',
    500: '#312fa3',
    950: '#000000',
  },
}
SCSS
$custom: #312fa3;
$custom-light: #7a69bf;
$custom-dark: #000000;
JSON
{
  "hex": "#312fa3",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 241.034,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39268,
    "c": 0.17988,
    "h": 275
  },
  "luminance": 0.0533
}

Semantic roles & 50–950 ramp

primary
#312FA3
secondary
#BEBF6F
accent
#DF49DC
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #312FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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