#312386#312386

#312386 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.156 H 280.9°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#312386
RGBrgb(49, 35, 134)
HSLhsl(248, 59%, 33%)
HSVhsv(248, 74%, 53%)
CMYKcmyk(63.4%, 73.9%, 0%, 47.5%)
CIE-LABlab(22.22, 36.22, -53.07)
CIE-LCHlch(22.22, 64.25, 304.31°)
OKLaboklab(34.52% 0.0294 -0.153)
OKLCHoklch(34.52% 0.156 280.9)
XYZxyz(6.1694, 3.5758, 22.9147)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312386 #788623
analogous
#234686 #312386 #622386
triadic
#312386 #863123 #238631
tetradic
#312386 #862346 #788623 #238662
square
#312386 #862346 #788623 #238662
split-complementary
#312386 #866223 #468623
monochromatic
#0E0A25 #1F1655 #312386 #4330B7 #6452D2

Accessibility & contrast

On white

12.24
#312386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#312386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312386
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312386#FFFFFF#000000##FFFFFF
##3123861.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#003184
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #312386;
/* rgb */ color: rgb(49, 35, 134);
/* oklch */ color: oklch(34.5% 0.156 280.9);
Tailwind
colors: {
  custom: {
    50: '#7460aa',
    500: '#312386',
    950: '#000000',
  },
}
SCSS
$custom: #312386;
$custom-light: #7460aa;
$custom-dark: #000000;
JSON
{
  "hex": "#312386",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 134
  },
  "hsl": {
    "h": 248.485,
    "s": 58.58,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34516,
    "c": 0.15584,
    "h": 280.9
  },
  "luminance": 0.03576
}

Semantic roles & 50–950 ramp

primary
#312386
secondary
#A7B54F
accent
#E246CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #312386

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

Preview Lab → · Contrast checker → · Palette generator →

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