#312390#312390

#312390 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.169 H 279.3°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#312390
RGBrgb(49, 35, 144)
HSLhsl(248, 61%, 35%)
HSVhsv(248, 76%, 56%)
CMYKcmyk(66%, 75.7%, 0%, 43.5%)
CIE-LABlab(23.23, 39.48, -57.64)
CIE-LCHlch(23.23, 69.87, 304.41°)
OKLaboklab(35.54% 0.0271 -0.1664)
OKLCHoklch(35.54% 0.169 279.3)
XYZxyz(6.9001, 3.8681, 26.7631)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312390 #829023
analogous
#234C90 #312390 #672390
triadic
#312390 #903123 #239031
tetradic
#312390 #90234C #829023 #239067
square
#312390 #90234C #829023 #239067
split-complementary
#312390 #906723 #4C9023
monochromatic
#0F0B2E #20175F #312390 #422FC1 #6857D6

Accessibility & contrast

On white

11.84
#312390 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#312390 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312390
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312390#FFFFFF#000000##FFFFFF
##3123901.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312390;
/* rgb */ color: rgb(49, 35, 144);
/* oklch */ color: oklch(35.5% 0.169 279.3);
Tailwind
colors: {
  custom: {
    50: '#7660b2',
    500: '#312390',
    950: '#000000',
  },
}
SCSS
$custom: #312390;
$custom-light: #7660b2;
$custom-dark: #000000;
JSON
{
  "hex": "#312390",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 144
  },
  "hsl": {
    "h": 247.706,
    "s": 60.894,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35542,
    "c": 0.1686,
    "h": 279.3
  },
  "luminance": 0.03869
}

Semantic roles & 50–950 ramp

primary
#312390
secondary
#ADBA54
accent
#E444CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312390

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

Preview Lab → · Contrast checker → · Palette generator →

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