#312893#312893

#312893 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.6% C 0.167 H 278.0°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#312893
RGBrgb(49, 40, 147)
HSLhsl(245, 57%, 37%)
HSVhsv(245, 73%, 58%)
CMYKcmyk(66.7%, 72.8%, 0%, 42.4%)
CIE-LABlab(24.57, 37.59, -57.30)
CIE-LCHlch(24.57, 68.53, 303.26°)
OKLaboklab(36.58% 0.0231 -0.1654)
OKLCHoklch(36.58% 0.167 278)
XYZxyz(7.2902, 4.2765, 28.0394)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312893 #8A9328
analogous
#285593 #312893 #672893
triadic
#312893 #933128 #289331
tetradic
#312893 #932855 #8A9328 #289367
square
#312893 #932855 #8A9328 #289367
split-complementary
#312893 #936728 #559328
monochromatic
#110E33 #211B63 #312893 #4135C3 #6B61D4

Accessibility & contrast

On white

11.32
#312893 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#312893 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312893
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312893#FFFFFF#000000##FFFFFF
##3128931.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312893;
/* rgb */ color: rgb(49, 40, 147);
/* oklch */ color: oklch(36.6% 0.167 278.0);
Tailwind
colors: {
  custom: {
    50: '#7763b4',
    500: '#312893',
    950: '#000000',
  },
}
SCSS
$custom: #312893;
$custom-light: #7763b4;
$custom-dark: #000000;
JSON
{
  "hex": "#312893",
  "rgb": {
    "r": 49,
    "g": 40,
    "b": 147
  },
  "hsl": {
    "h": 245.047,
    "s": 57.219,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36581,
    "c": 0.16704,
    "h": 278
  },
  "luminance": 0.04277
}

Semantic roles & 50–950 ramp

primary
#312893
secondary
#B2BA5D
accent
#E047D4
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #312893

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

Preview Lab → · Contrast checker → · Palette generator →

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