#312993#312993

#312993 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.7% C 0.166 H 277.8°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#312993
RGBrgb(49, 41, 147)
HSLhsl(245, 56%, 37%)
HSVhsv(245, 72%, 58%)
CMYKcmyk(66.7%, 72.1%, 0%, 42.4%)
CIE-LABlab(24.78, 36.99, -56.95)
CIE-LCHlch(24.78, 67.91, 303.01°)
OKLaboklab(36.74% 0.0224 -0.1644)
OKLCHoklch(36.74% 0.166 277.8)
XYZxyz(7.3243, 4.3448, 28.0508)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312993 #8B9329
analogous
#295693 #312993 #662993
triadic
#312993 #933129 #299331
tetradic
#312993 #932956 #8B9329 #299366
square
#312993 #932956 #8B9329 #299366
split-complementary
#312993 #936629 #569329
monochromatic
#110E33 #211C63 #312993 #4136C3 #6B63D3

Accessibility & contrast

On white

11.24
#312993 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#312993 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312993
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312993#FFFFFF#000000##FFFFFF
##3129931.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F96
Deuteranopia (green-blind)
#003691
Tritanopia (blue-blind)
#00465B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #312993;
/* rgb */ color: rgb(49, 41, 147);
/* oklch */ color: oklch(36.7% 0.166 277.8);
Tailwind
colors: {
  custom: {
    50: '#7764b4',
    500: '#312993',
    950: '#000000',
  },
}
SCSS
$custom: #312993;
$custom-light: #7764b4;
$custom-dark: #000000;
JSON
{
  "hex": "#312993",
  "rgb": {
    "r": 49,
    "g": 41,
    "b": 147
  },
  "hsl": {
    "h": 244.528,
    "s": 56.383,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36735,
    "c": 0.16592,
    "h": 277.8
  },
  "luminance": 0.04345
}

Semantic roles & 50–950 ramp

primary
#312993
secondary
#B2B95E
accent
#E048D4
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #312993

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

Preview Lab → · Contrast checker → · Palette generator →

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