#312772#312772

#312772 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.124 H 283.4°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#312772
RGBrgb(49, 39, 114)
HSLhsl(248, 49%, 30%)
HSVhsv(248, 66%, 45%)
CMYKcmyk(57%, 65.8%, 0%, 55.3%)
CIE-LABlab(21.28, 27.02, -41.91)
CIE-LCHlch(21.28, 49.87, 302.82°)
OKLaboklab(33.27% 0.0288 -0.1203)
OKLCHoklch(33.27% 0.124 283.4)
XYZxyz(5.0285, 3.3186, 16.2919)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312772 #687227
analogous
#274272 #312772 #572772
triadic
#312772 #723127 #277231
tetradic
#312772 #722742 #687227 #277257
square
#312772 #722742 #687227 #277257
split-complementary
#312772 #725727 #427227
monochromatic
#0A0817 #1D1744 #312772 #4537A0 #6050C3

Accessibility & contrast

On white

12.62
#312772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#312772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312772
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312772#FFFFFF#000000##FFFFFF
##3127721.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#143948
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #312772;
/* rgb */ color: rgb(49, 39, 114);
/* oklch */ color: oklch(33.3% 0.124 283.4);
Tailwind
colors: {
  custom: {
    50: '#70629b',
    500: '#312772',
    950: '#000000',
  },
}
SCSS
$custom: #312772;
$custom-light: #70629b;
$custom-dark: #000000;
JSON
{
  "hex": "#312772",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 114
  },
  "hsl": {
    "h": 248,
    "s": 49.02,
    "l": 30
  },
  "oklch": {
    "l": 0.3327,
    "c": 0.12369,
    "h": 283.4
  },
  "luminance": 0.03319
}

Semantic roles & 50–950 ramp

primary
#312772
secondary
#99A450
accent
#D94FC6
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #312772

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

Preview Lab → · Contrast checker → · Palette generator →

#312772 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva