#312FA2#312FA2

#312FA2 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.2% C 0.179 H 275.1°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#312FA2
RGBrgb(49, 47, 162)
HSLhsl(241, 55%, 41%)
HSVhsv(241, 71%, 64%)
CMYKcmyk(69.8%, 71%, 0%, 36.5%)
CIE-LABlab(27.56, 38.48, -61.56)
CIE-LCHlch(27.56, 72.59, 302.01°)
OKLaboklab(39.17% 0.0159 -0.1779)
OKLCHoklch(39.17% 0.179 275.1)
XYZxyz(8.8026, 5.2938, 34.7333)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FA2 #A0A22F
analogous
#2F66A2 #312FA2 #6A2FA2
triadic
#312FA2 #A2312F #2FA231
tetradic
#312FA2 #A22F66 #A0A22F #2FA26A
square
#312FA2 #A22F66 #A0A22F #2FA26A
split-complementary
#312FA2 #A26A2F #66A22F
monochromatic
#141343 #232173 #312FA2 #4745C9 #7675D7

Accessibility & contrast

On white

10.20
#312FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#312FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FA2
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FA2#FFFFFF#000000##FFFFFF
##312FA21.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A5
Deuteranopia (green-blind)
#003CA0
Tritanopia (blue-blind)
#004F65
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #312fa2;
/* rgb */ color: rgb(49, 47, 162);
/* oklch */ color: oklch(39.2% 0.179 275.1);
Tailwind
colors: {
  custom: {
    50: '#7968bf',
    500: '#312fa2',
    950: '#000000',
  },
}
SCSS
$custom: #312fa2;
$custom-light: #7968bf;
$custom-dark: #000000;
JSON
{
  "hex": "#312fa2",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 241.043,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39169,
    "c": 0.1786,
    "h": 275.1
  },
  "luminance": 0.05295
}

Semantic roles & 50–950 ramp

primary
#312FA2
secondary
#BDBF6E
accent
#DE49DC
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #312FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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