#312291#312291

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

Color values

HEX#312291
RGBrgb(49, 34, 145)
HSLhsl(248, 62%, 35%)
HSVhsv(248, 77%, 57%)
CMYKcmyk(66.2%, 76.6%, 0%, 43.1%)
CIE-LABlab(23.14, 40.36, -58.42)
CIE-LCHlch(23.14, 71.00, 304.64°)
OKLaboklab(35.51% 0.0276 -0.1686)
OKLCHoklch(35.51% 0.171 279.3)
XYZxyz(6.9478, 3.8408, 27.1578)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312291 #829122
analogous
#224B91 #312291 #682291
triadic
#312291 #913122 #229131
tetradic
#312291 #91224B #829122 #229168
square
#312291 #91224B #829122 #229168
split-complementary
#312291 #916822 #4B9122
monochromatic
#0F0B2E #20165F #312291 #422EC3 #6856D7

Accessibility & contrast

On white

11.88
#312291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312291
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312291#FFFFFF#000000##FFFFFF
##3122911.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312291;
/* rgb */ color: rgb(49, 34, 145);
/* oklch */ color: oklch(35.5% 0.171 279.3);
Tailwind
colors: {
  custom: {
    50: '#7760b2',
    500: '#312291',
    950: '#000000',
  },
}
SCSS
$custom: #312291;
$custom-light: #7760b2;
$custom-dark: #000000;
JSON
{
  "hex": "#312291",
  "rgb": {
    "r": 49,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 248.108,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35507,
    "c": 0.17089,
    "h": 279.3
  },
  "luminance": 0.03841
}

Semantic roles & 50–950 ramp

primary
#312291
secondary
#ADBB53
accent
#E543CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312291

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

Preview Lab → · Contrast checker → · Palette generator →

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