#312389#312389

#312389 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.160 H 280.4°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#312389
RGBrgb(49, 35, 137)
HSLhsl(248, 59%, 34%)
HSVhsv(248, 74%, 54%)
CMYKcmyk(64.2%, 74.5%, 0%, 46.3%)
CIE-LABlab(22.52, 37.20, -54.46)
CIE-LCHlch(22.52, 65.95, 304.34°)
OKLaboklab(34.82% 0.0287 -0.1571)
OKLCHoklch(34.82% 0.16 280.4)
XYZxyz(6.3816, 3.6607, 24.0324)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312389 #7B8923
analogous
#234889 #312389 #642389
triadic
#312389 #893123 #238931
tetradic
#312389 #892348 #7B8923 #238964
square
#312389 #892348 #7B8923 #238964
split-complementary
#312389 #896423 #488923
monochromatic
#0E0A28 #201758 #312389 #422FBA #6553D3

Accessibility & contrast

On white

12.12
#312389 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#312389 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312389
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312389#FFFFFF#000000##FFFFFF
##3123891.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398C
Deuteranopia (green-blind)
#003287
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #312389;
/* rgb */ color: rgb(49, 35, 137);
/* oklch */ color: oklch(34.8% 0.160 280.4);
Tailwind
colors: {
  custom: {
    50: '#7560ac',
    500: '#312389',
    950: '#000000',
  },
}
SCSS
$custom: #312389;
$custom-light: #7560ac;
$custom-dark: #000000;
JSON
{
  "hex": "#312389",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 137
  },
  "hsl": {
    "h": 248.235,
    "s": 59.302,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3482,
    "c": 0.1597,
    "h": 280.4
  },
  "luminance": 0.03661
}

Semantic roles & 50–950 ramp

primary
#312389
secondary
#A9B751
accent
#E245CD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #312389

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

Preview Lab → · Contrast checker → · Palette generator →

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