#312DB3#312DB3

#312DB3 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.6% C 0.202 H 274.0°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#312DB3
RGBrgb(49, 45, 179)
HSLhsl(242, 60%, 44%)
HSVhsv(242, 75%, 70%)
CMYKcmyk(72.6%, 74.9%, 0%, 29.8%)
CIE-LABlab(28.86, 45.32, -69.63)
CIE-LCHlch(28.86, 83.08, 303.06°)
OKLaboklab(40.61% 0.014 -0.2014)
OKLCHoklch(40.61% 0.202 274)
XYZxyz(10.3390, 5.7834, 43.2105)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312DB3 #AFB32D
analogous
#2D6CB3 #312DB3 #742DB3
triadic
#312DB3 #B3312D #2DB331
tetradic
#312DB3 #B32D6C #AFB32D #2DB374
square
#312DB3 #B32D6C #AFB32D #2DB374
split-complementary
#312DB3 #B3742D #6CB32D
monochromatic
#161451 #242182 #312DB3 #4F4BD2 #7F7CDE

Accessibility & contrast

On white

9.74
#312DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#312DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312DB3
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312DB3#FFFFFF#000000##FFFFFF
##312DB31.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB7
Deuteranopia (green-blind)
#003EB1
Tritanopia (blue-blind)
#00546E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #312db3;
/* rgb */ color: rgb(49, 45, 179);
/* oklch */ color: oklch(40.6% 0.202 274.0);
Tailwind
colors: {
  custom: {
    50: '#7d68cb',
    500: '#312db3',
    950: '#000000',
  },
}
SCSS
$custom: #312db3;
$custom-light: #7d68cb;
$custom-dark: #000000;
JSON
{
  "hex": "#312db3",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 179
  },
  "hsl": {
    "h": 241.791,
    "s": 59.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.40614,
    "c": 0.2019,
    "h": 274
  },
  "luminance": 0.05784
}

Semantic roles & 50–950 ramp

primary
#312DB3
secondary
#C4C775
accent
#E345DE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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