#312DB2#312DB2

#312DB2 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.5% C 0.201 H 274.1°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#312DB2
RGBrgb(49, 45, 178)
HSLhsl(242, 60%, 44%)
HSVhsv(242, 75%, 70%)
CMYKcmyk(72.5%, 74.7%, 0%, 30.2%)
CIE-LABlab(28.75, 44.99, -69.21)
CIE-LCHlch(28.75, 82.55, 303.03°)
OKLaboklab(40.51% 0.0142 -0.2002)
OKLCHoklch(40.51% 0.201 274.1)
XYZxyz(10.2382, 5.7431, 42.6798)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312DB2 #AEB22D
analogous
#2D6BB2 #312DB2 #732DB2
triadic
#312DB2 #B2312D #2DB231
tetradic
#312DB2 #B22D6B #AEB22D #2DB273
square
#312DB2 #B22D6B #AEB22D #2DB273
split-complementary
#312DB2 #B2732D #6BB22D
monochromatic
#161450 #242181 #312DB2 #4F4BD1 #7F7CDE

Accessibility & contrast

On white

9.77
#312DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#312DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312DB2
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312DB2#FFFFFF#000000##FFFFFF
##312DB21.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB6
Deuteranopia (green-blind)
#003DB0
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #312db2;
/* rgb */ color: rgb(49, 45, 178);
/* oklch */ color: oklch(40.5% 0.201 274.1);
Tailwind
colors: {
  custom: {
    50: '#7d68ca',
    500: '#312db2',
    950: '#000000',
  },
}
SCSS
$custom: #312db2;
$custom-light: #7d68ca;
$custom-dark: #000000;
JSON
{
  "hex": "#312db2",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 241.805,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40509,
    "c": 0.20068,
    "h": 274.1
  },
  "luminance": 0.05744
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #312DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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