#312094#312094

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

Color values

HEX#312094
RGBrgb(49, 32, 148)
HSLhsl(249, 64%, 35%)
HSVhsv(249, 78%, 58%)
CMYKcmyk(66.9%, 78.4%, 0%, 42%)
CIE-LABlab(23.08, 42.40, -60.37)
CIE-LCHlch(23.08, 73.77, 305.08°)
OKLaboklab(35.56% 0.028 -0.1743)
OKLCHoklch(35.56% 0.177 279.1)
XYZxyz(7.1267, 3.8235, 28.3737)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312094 #839420
analogous
#204994 #312094 #6B2094
triadic
#312094 #943120 #209431
tetradic
#312094 #942049 #839420 #20946B
square
#312094 #942049 #839420 #20946B
split-complementary
#312094 #946B20 #499420
monochromatic
#100A2F #201562 #312094 #422BC6 #6854DA

Accessibility & contrast

On white

11.90
#312094 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312094
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312094#FFFFFF#000000##FFFFFF
##3120941.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312094;
/* rgb */ color: rgb(49, 32, 148);
/* oklch */ color: oklch(35.6% 0.177 279.1);
Tailwind
colors: {
  custom: {
    50: '#785fb5',
    500: '#312094',
    950: '#000000',
  },
}
SCSS
$custom: #312094;
$custom-light: #785fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#312094",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 148
  },
  "hsl": {
    "h": 248.793,
    "s": 64.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35561,
    "c": 0.17656,
    "h": 279.1
  },
  "luminance": 0.03824
}

Semantic roles & 50–950 ramp

primary
#312094
secondary
#AEBE52
accent
#E740CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312094

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

Preview Lab → · Contrast checker → · Palette generator →

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