#312391#312391

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

Color values

HEX#312391
RGBrgb(49, 35, 145)
HSLhsl(248, 61%, 35%)
HSVhsv(248, 76%, 57%)
CMYKcmyk(66.2%, 75.9%, 0%, 43.1%)
CIE-LABlab(23.33, 39.81, -58.09)
CIE-LCHlch(23.33, 70.42, 304.42°)
OKLaboklab(35.65% 0.0269 -0.1677)
OKLCHoklch(35.65% 0.17 279.1)
XYZxyz(6.9769, 3.8988, 27.1675)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312391 #839123
analogous
#234C91 #312391 #682391
triadic
#312391 #913123 #239131
tetradic
#312391 #91234C #839123 #239168
square
#312391 #91234C #839123 #239168
split-complementary
#312391 #916823 #4C9123
monochromatic
#100B2E #201760 #312391 #422FC2 #6858D7

Accessibility & contrast

On white

11.80
#312391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#312391 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312391
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312391#FFFFFF#000000##FFFFFF
##3123911.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312391;
/* rgb */ color: rgb(49, 35, 145);
/* oklch */ color: oklch(35.6% 0.170 279.1);
Tailwind
colors: {
  custom: {
    50: '#7760b2',
    500: '#312391',
    950: '#000000',
  },
}
SCSS
$custom: #312391;
$custom-light: #7760b2;
$custom-dark: #000000;
JSON
{
  "hex": "#312391",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 145
  },
  "hsl": {
    "h": 247.636,
    "s": 61.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35646,
    "c": 0.16986,
    "h": 279.1
  },
  "luminance": 0.03899
}

Semantic roles & 50–950 ramp

primary
#312391
secondary
#AEBB55
accent
#E444D0
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312391

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

Preview Lab → · Contrast checker → · Palette generator →

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