#312890#312890

#312890 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.163 H 278.3°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#312890
RGBrgb(49, 40, 144)
HSLhsl(245, 57%, 36%)
HSVhsv(245, 72%, 56%)
CMYKcmyk(66%, 72.2%, 0%, 43.5%)
CIE-LABlab(24.27, 36.58, -55.93)
CIE-LCHlch(24.27, 66.84, 303.19°)
OKLaboklab(36.28% 0.0237 -0.1614)
OKLCHoklch(36.28% 0.163 278.3)
XYZxyz(7.0578, 4.1836, 26.8157)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312890 #879028
analogous
#285390 #312890 #652890
triadic
#312890 #903128 #289031
tetradic
#312890 #902853 #879028 #289065
square
#312890 #902853 #879028 #289065
split-complementary
#312890 #906528 #539028
monochromatic
#100D30 #211B60 #312890 #4135C0 #6A60D3

Accessibility & contrast

On white

11.43
#312890 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#312890 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312890
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312890#FFFFFF#000000##FFFFFF
##3128901.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E93
Deuteranopia (green-blind)
#00358E
Tritanopia (blue-blind)
#004459
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #312890;
/* rgb */ color: rgb(49, 40, 144);
/* oklch */ color: oklch(36.3% 0.163 278.3);
Tailwind
colors: {
  custom: {
    50: '#7663b2',
    500: '#312890',
    950: '#000000',
  },
}
SCSS
$custom: #312890;
$custom-light: #7663b2;
$custom-dark: #000000;
JSON
{
  "hex": "#312890",
  "rgb": {
    "r": 49,
    "g": 40,
    "b": 144
  },
  "hsl": {
    "h": 245.192,
    "s": 56.522,
    "l": 36.078
  },
  "oklch": {
    "l": 0.3628,
    "c": 0.16315,
    "h": 278.3
  },
  "luminance": 0.04184
}

Semantic roles & 50–950 ramp

primary
#312890
secondary
#B0B85C
accent
#E048D3
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #312890

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

Preview Lab → · Contrast checker → · Palette generator →

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