#312393#312393

#312393 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.172 H 278.8°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#312393
RGBrgb(49, 35, 147)
HSLhsl(248, 62%, 36%)
HSVhsv(248, 76%, 58%)
CMYKcmyk(66.7%, 76.2%, 0%, 42.4%)
CIE-LABlab(23.54, 40.46, -58.99)
CIE-LCHlch(23.54, 71.53, 304.44°)
OKLaboklab(35.85% 0.0264 -0.1703)
OKLCHoklch(35.85% 0.172 278.8)
XYZxyz(7.1324, 3.9610, 27.9868)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312393 #859323
analogous
#234D93 #312393 #692393
triadic
#312393 #933123 #239331
tetradic
#312393 #93234D #859323 #239369
square
#312393 #93234D #859323 #239369
split-complementary
#312393 #936923 #4D9323
monochromatic
#100B30 #211762 #312393 #412FC4 #6959D7

Accessibility & contrast

On white

11.72
#312393 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#312393 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312393
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312393#FFFFFF#000000##FFFFFF
##3123931.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312393;
/* rgb */ color: rgb(49, 35, 147);
/* oklch */ color: oklch(35.9% 0.172 278.8);
Tailwind
colors: {
  custom: {
    50: '#7760b4',
    500: '#312393',
    950: '#000000',
  },
}
SCSS
$custom: #312393;
$custom-light: #7760b4;
$custom-dark: #000000;
JSON
{
  "hex": "#312393",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 147
  },
  "hsl": {
    "h": 247.5,
    "s": 61.538,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35855,
    "c": 0.17236,
    "h": 278.8
  },
  "luminance": 0.03962
}

Semantic roles & 50–950 ramp

primary
#312393
secondary
#AFBC56
accent
#E543D0
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312393

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

Preview Lab → · Contrast checker → · Palette generator →

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