#312385#312385

#312385 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.155 H 281.0°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#312385
RGBrgb(49, 35, 133)
HSLhsl(249, 58%, 33%)
HSVhsv(249, 74%, 52%)
CMYKcmyk(63.2%, 73.7%, 0%, 47.8%)
CIE-LABlab(22.12, 35.89, -52.61)
CIE-LCHlch(22.12, 63.68, 304.30°)
OKLaboklab(34.42% 0.0296 -0.1517)
OKLCHoklch(34.42% 0.155 281)
XYZxyz(6.1000, 3.5480, 22.5491)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312385 #778523
analogous
#234685 #312385 #622385
triadic
#312385 #853123 #238531
tetradic
#312385 #852346 #778523 #238562
square
#312385 #852346 #778523 #238562
split-complementary
#312385 #856223 #468523
monochromatic
#0D0924 #1F1655 #312385 #4330B5 #6351D1

Accessibility & contrast

On white

12.28
#312385 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#312385 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312385
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312385#FFFFFF#000000##FFFFFF
##3123851.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003888
Deuteranopia (green-blind)
#003183
Tritanopia (blue-blind)
#003E51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #312385;
/* rgb */ color: rgb(49, 35, 133);
/* oklch */ color: oklch(34.4% 0.155 281.0);
Tailwind
colors: {
  custom: {
    50: '#7460a9',
    500: '#312385',
    950: '#000000',
  },
}
SCSS
$custom: #312385;
$custom-light: #7460a9;
$custom-dark: #000000;
JSON
{
  "hex": "#312385",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 133
  },
  "hsl": {
    "h": 248.571,
    "s": 58.333,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34415,
    "c": 0.15455,
    "h": 281
  },
  "luminance": 0.03548
}

Semantic roles & 50–950 ramp

primary
#312385
secondary
#A6B54F
accent
#E246CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #312385

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

Preview Lab → · Contrast checker → · Palette generator →

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