#312E92#312E92

#312E92 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.4% C 0.159 H 276.8°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#312E92
RGBrgb(49, 46, 146)
HSLhsl(242, 52%, 38%)
HSVhsv(242, 68%, 57%)
CMYKcmyk(66.4%, 68.5%, 0%, 42.7%)
CIE-LABlab(25.81, 33.58, -54.65)
CIE-LCHlch(25.81, 64.14, 301.57°)
OKLaboklab(37.45% 0.0188 -0.1577)
OKLCHoklch(37.45% 0.159 276.8)
XYZxyz(7.4302, 4.6817, 27.7006)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312E92 #8F922E
analogous
#2E5D92 #312E92 #632E92
triadic
#312E92 #92312E #2E9231
tetradic
#312E92 #922E5D #8F922E #2E9263
square
#312E92 #922E5D #8F922E #2E9263
split-complementary
#312E92 #92632E #5D922E
monochromatic
#121135 #211F63 #312E92 #413DC1 #6D6AD0

Accessibility & contrast

On white

10.84
#312E92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#312E92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312E92
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312E92#FFFFFF#000000##FFFFFF
##312E921.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004195
Deuteranopia (green-blind)
#003990
Tritanopia (blue-blind)
#00485C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #312e92;
/* rgb */ color: rgb(49, 46, 146);
/* oklch */ color: oklch(37.4% 0.159 276.8);
Tailwind
colors: {
  custom: {
    50: '#7667b3',
    500: '#312e92',
    950: '#000000',
  },
}
SCSS
$custom: #312e92;
$custom-light: #7667b3;
$custom-dark: #000000;
JSON
{
  "hex": "#312e92",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 146
  },
  "hsl": {
    "h": 241.8,
    "s": 52.083,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37445,
    "c": 0.15879,
    "h": 276.8
  },
  "luminance": 0.04682
}

Semantic roles & 50–950 ramp

primary
#312E92
secondary
#B5B765
accent
#DC4CD7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #312E92

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

Preview Lab → · Contrast checker → · Palette generator →

#312E92 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva