#312292#312292

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

Color values

HEX#312292
RGBrgb(49, 34, 146)
HSLhsl(248, 62%, 35%)
HSVhsv(248, 77%, 57%)
CMYKcmyk(66.4%, 76.7%, 0%, 42.7%)
CIE-LABlab(23.24, 40.68, -58.86)
CIE-LCHlch(23.24, 71.55, 304.65°)
OKLaboklab(35.61% 0.0273 -0.1699)
OKLCHoklch(35.61% 0.172 279.1)
XYZxyz(7.0253, 3.8718, 27.5657)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312292 #839222
analogous
#224B92 #312292 #692292
triadic
#312292 #923122 #229231
tetradic
#312292 #92224B #839222 #229269
square
#312292 #92224B #839222 #229269
split-complementary
#312292 #926922 #4B9222
monochromatic
#100B2F #201660 #312292 #422EC4 #6857D8

Accessibility & contrast

On white

11.83
#312292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312292
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312292#FFFFFF#000000##FFFFFF
##3122921.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C95
Deuteranopia (green-blind)
#003390
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #312292;
/* rgb */ color: rgb(49, 34, 146);
/* oklch */ color: oklch(35.6% 0.172 279.1);
Tailwind
colors: {
  custom: {
    50: '#7760b3',
    500: '#312292',
    950: '#000000',
  },
}
SCSS
$custom: #312292;
$custom-light: #7760b3;
$custom-dark: #000000;
JSON
{
  "hex": "#312292",
  "rgb": {
    "r": 49,
    "g": 34,
    "b": 146
  },
  "hsl": {
    "h": 248.036,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35613,
    "c": 0.17213,
    "h": 279.1
  },
  "luminance": 0.03872
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #312292

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

Preview Lab → · Contrast checker → · Palette generator →

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