#312490#312490

#312490 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.168 H 279.1°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#312490
RGBrgb(49, 36, 144)
HSLhsl(247, 60%, 35%)
HSVhsv(247, 75%, 56%)
CMYKcmyk(66%, 75%, 0%, 43.5%)
CIE-LABlab(23.43, 38.92, -57.31)
CIE-LCHlch(23.43, 69.28, 304.18°)
OKLaboklab(35.68% 0.0265 -0.1654)
OKLCHoklch(35.68% 0.168 279.1)
XYZxyz(6.9299, 3.9278, 26.7731)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312490 #839024
analogous
#244D90 #312490 #672490
triadic
#312490 #903124 #249031
tetradic
#312490 #90244D #839024 #249067
square
#312490 #90244D #839024 #249067
split-complementary
#312490 #906724 #4D9024
monochromatic
#100C2E #20185F #312490 #4230C1 #6859D5

Accessibility & contrast

On white

11.76
#312490 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#312490 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312490
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312490#FFFFFF#000000##FFFFFF
##3124901.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C93
Deuteranopia (green-blind)
#00338E
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #312490;
/* rgb */ color: rgb(49, 36, 144);
/* oklch */ color: oklch(35.7% 0.168 279.1);
Tailwind
colors: {
  custom: {
    50: '#7661b2',
    500: '#312490',
    950: '#000000',
  },
}
SCSS
$custom: #312490;
$custom-light: #7661b2;
$custom-dark: #000000;
JSON
{
  "hex": "#312490",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 144
  },
  "hsl": {
    "h": 247.222,
    "s": 60,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35684,
    "c": 0.16754,
    "h": 279.1
  },
  "luminance": 0.03928
}

Semantic roles & 50–950 ramp

primary
#312490
secondary
#AEBA56
accent
#E345D0
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312490

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

Preview Lab → · Contrast checker → · Palette generator →

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