#312193#312193

#312193 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.174 H 279.1°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#312193
RGBrgb(49, 33, 147)
HSLhsl(248, 63%, 35%)
HSVhsv(248, 78%, 58%)
CMYKcmyk(66.7%, 77.6%, 0%, 42.4%)
CIE-LABlab(23.16, 41.55, -59.62)
CIE-LCHlch(23.16, 72.67, 304.87°)
OKLaboklab(35.59% 0.0277 -0.1721)
OKLCHoklch(35.59% 0.174 279.1)
XYZxyz(7.0753, 3.8467, 27.9677)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312193 #839321
analogous
#214A93 #312193 #6A2193
triadic
#312193 #933121 #219331
tetradic
#312193 #93214A #839321 #21936A
square
#312193 #93214A #839321 #21936A
split-complementary
#312193 #936A21 #4A9321
monochromatic
#100B2F #201661 #312193 #422CC5 #6855D9

Accessibility & contrast

On white

11.87
#312193 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#312193 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312193
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312193#FFFFFF#000000##FFFFFF
##3121931.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B96
Deuteranopia (green-blind)
#003391
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #312193;
/* rgb */ color: rgb(49, 33, 147);
/* oklch */ color: oklch(35.6% 0.174 279.1);
Tailwind
colors: {
  custom: {
    50: '#775fb4',
    500: '#312193',
    950: '#000000',
  },
}
SCSS
$custom: #312193;
$custom-light: #775fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#312193",
  "rgb": {
    "r": 49,
    "g": 33,
    "b": 147
  },
  "hsl": {
    "h": 248.421,
    "s": 63.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35585,
    "c": 0.17436,
    "h": 279.1
  },
  "luminance": 0.03847
}

Semantic roles & 50–950 ramp

primary
#312193
secondary
#AEBD53
accent
#E641CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312193

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

Preview Lab → · Contrast checker → · Palette generator →

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