#312790#312790

#312790 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.164 H 278.5°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#312790
RGBrgb(49, 39, 144)
HSLhsl(246, 57%, 36%)
HSVhsv(246, 73%, 56%)
CMYKcmyk(66%, 72.9%, 0%, 43.5%)
CIE-LABlab(24.05, 37.18, -56.29)
CIE-LCHlch(24.05, 67.46, 303.45°)
OKLaboklab(36.13% 0.0244 -0.1625)
OKLCHoklch(36.13% 0.164 278.5)
XYZxyz(7.0246, 4.1171, 26.8046)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312790 #869027
analogous
#275190 #312790 #652790
triadic
#312790 #903127 #279031
tetradic
#312790 #902751 #869027 #279065
square
#312790 #902751 #869027 #279065
split-complementary
#312790 #906527 #519027
monochromatic
#100D30 #211A60 #312790 #4134C0 #695ED3

Accessibility & contrast

On white

11.52
#312790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#312790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312790
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312790#FFFFFF#000000##FFFFFF
##3127901.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D93
Deuteranopia (green-blind)
#00358E
Tritanopia (blue-blind)
#004459
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #312790;
/* rgb */ color: rgb(49, 39, 144);
/* oklch */ color: oklch(36.1% 0.164 278.5);
Tailwind
colors: {
  custom: {
    50: '#7663b2',
    500: '#312790',
    950: '#000000',
  },
}
SCSS
$custom: #312790;
$custom-light: #7663b2;
$custom-dark: #000000;
JSON
{
  "hex": "#312790",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 144
  },
  "hsl": {
    "h": 245.714,
    "s": 57.377,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36127,
    "c": 0.16428,
    "h": 278.5
  },
  "luminance": 0.04118
}

Semantic roles & 50–950 ramp

primary
#312790
secondary
#B0B95A
accent
#E147D2
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312790

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

Preview Lab → · Contrast checker → · Palette generator →

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