#312DB1#312DB1

#312DB1 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.4% C 0.199 H 274.1°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#312DB1
RGBrgb(49, 45, 177)
HSLhsl(242, 59%, 44%)
HSVhsv(242, 75%, 69%)
CMYKcmyk(72.3%, 74.6%, 0%, 30.6%)
CIE-LABlab(28.65, 44.67, -68.78)
CIE-LCHlch(28.65, 82.01, 303.00°)
OKLaboklab(40.4% 0.0144 -0.1989)
OKLCHoklch(40.4% 0.199 274.1)
XYZxyz(10.1382, 5.7031, 42.1530)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312DB1 #ADB12D
analogous
#2D6BB1 #312DB1 #732DB1
triadic
#312DB1 #B1312D #2DB131
tetradic
#312DB1 #B12D6B #ADB12D #2DB173
square
#312DB1 #B12D6B #ADB12D #2DB173
split-complementary
#312DB1 #B1732D #6BB12D
monochromatic
#16144F #232180 #312DB1 #4E4AD1 #7E7BDD

Accessibility & contrast

On white

9.81
#312DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#312DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312DB1
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312DB1#FFFFFF#000000##FFFFFF
##312DB11.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB5
Deuteranopia (green-blind)
#003DAF
Tritanopia (blue-blind)
#00536D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #312db1;
/* rgb */ color: rgb(49, 45, 177);
/* oklch */ color: oklch(40.4% 0.199 274.1);
Tailwind
colors: {
  custom: {
    50: '#7d68ca',
    500: '#312db1',
    950: '#000000',
  },
}
SCSS
$custom: #312db1;
$custom-light: #7d68ca;
$custom-dark: #000000;
JSON
{
  "hex": "#312db1",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 177
  },
  "hsl": {
    "h": 241.818,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40404,
    "c": 0.19946,
    "h": 274.1
  },
  "luminance": 0.05704
}

Semantic roles & 50–950 ramp

primary
#312DB1
secondary
#C3C674
accent
#E345DE
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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