#312293#312293

#312293 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.173 H 279.0°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#312293
RGBrgb(49, 34, 147)
HSLhsl(248, 62%, 35%)
HSVhsv(248, 77%, 58%)
CMYKcmyk(66.7%, 76.9%, 0%, 42.4%)
CIE-LABlab(23.35, 41.01, -59.31)
CIE-LCHlch(23.35, 72.10, 304.66°)
OKLaboklab(35.72% 0.0271 -0.1713)
OKLCHoklch(35.72% 0.173 279)
XYZxyz(7.1034, 3.9030, 27.9771)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312293 #849322
analogous
#224B93 #312293 #6A2293
triadic
#312293 #933122 #229331
tetradic
#312293 #93224B #849322 #22936A
square
#312293 #93224B #849322 #22936A
split-complementary
#312293 #936A22 #4B9322
monochromatic
#100B30 #201761 #312293 #422DC5 #6857D8

Accessibility & contrast

On white

11.79
#312293 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#312293 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312293
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312293#FFFFFF#000000##FFFFFF
##3122931.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C96
Deuteranopia (green-blind)
#003391
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #312293;
/* rgb */ color: rgb(49, 34, 147);
/* oklch */ color: oklch(35.7% 0.173 279.0);
Tailwind
colors: {
  custom: {
    50: '#7760b4',
    500: '#312293',
    950: '#000000',
  },
}
SCSS
$custom: #312293;
$custom-light: #7760b4;
$custom-dark: #000000;
JSON
{
  "hex": "#312293",
  "rgb": {
    "r": 49,
    "g": 34,
    "b": 147
  },
  "hsl": {
    "h": 247.965,
    "s": 62.431,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35719,
    "c": 0.17338,
    "h": 279
  },
  "luminance": 0.03904
}

Semantic roles & 50–950 ramp

primary
#312293
secondary
#AEBC55
accent
#E542D0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312293

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

Preview Lab → · Contrast checker → · Palette generator →

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