#312093#312093

#312093 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.175 H 279.3°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#312093
RGBrgb(49, 32, 147)
HSLhsl(249, 64%, 35%)
HSVhsv(249, 78%, 58%)
CMYKcmyk(66.7%, 78.2%, 0%, 42.4%)
CIE-LABlab(22.97, 42.08, -59.93)
CIE-LCHlch(22.97, 73.23, 305.08°)
OKLaboklab(35.45% 0.0283 -0.173)
OKLCHoklch(35.45% 0.175 279.3)
XYZxyz(7.0479, 3.7920, 27.9586)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312093 #829320
analogous
#204893 #312093 #6B2093
triadic
#312093 #933120 #209331
tetradic
#312093 #932048 #829320 #20936B
square
#312093 #932048 #829320 #20936B
split-complementary
#312093 #936B20 #489320
monochromatic
#0F0A2E #201561 #312093 #422BC5 #6854DA

Accessibility & contrast

On white

11.94
#312093 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#312093 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312093
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312093#FFFFFF#000000##FFFFFF
##3120931.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312093;
/* rgb */ color: rgb(49, 32, 147);
/* oklch */ color: oklch(35.5% 0.175 279.3);
Tailwind
colors: {
  custom: {
    50: '#775eb4',
    500: '#312093',
    950: '#000000',
  },
}
SCSS
$custom: #312093;
$custom-light: #775eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#312093",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 147
  },
  "hsl": {
    "h": 248.87,
    "s": 64.246,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35454,
    "c": 0.17534,
    "h": 279.3
  },
  "luminance": 0.03793
}

Semantic roles & 50–950 ramp

primary
#312093
secondary
#ADBD52
accent
#E741CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312093

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

Preview Lab → · Contrast checker → · Palette generator →

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