#312F92#312F92

#312F92 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.6% C 0.158 H 276.6°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#312F92
RGBrgb(49, 47, 146)
HSLhsl(241, 51%, 38%)
HSVhsv(241, 68%, 57%)
CMYKcmyk(66.4%, 67.8%, 0%, 42.7%)
CIE-LABlab(26.04, 32.96, -54.26)
CIE-LCHlch(26.04, 63.49, 301.27°)
OKLaboklab(37.61% 0.018 -0.1565)
OKLCHoklch(37.61% 0.158 276.6)
XYZxyz(7.4698, 4.7607, 27.7138)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312F92 #90922F
analogous
#2F5E92 #312F92 #622F92
triadic
#312F92 #92312F #2F9231
tetradic
#312F92 #922F5E #90922F #2F9262
square
#312F92 #922F5E #90922F #2F9262
split-complementary
#312F92 #92622F #5E922F
monochromatic
#121135 #212064 #312F92 #413EC0 #6E6CD0

Accessibility & contrast

On white

10.76
#312F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#312F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312F92
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312F92#FFFFFF#000000##FFFFFF
##312F921.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004295
Deuteranopia (green-blind)
#003990
Tritanopia (blue-blind)
#00495C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #312f92;
/* rgb */ color: rgb(49, 47, 146);
/* oklch */ color: oklch(37.6% 0.158 276.6);
Tailwind
colors: {
  custom: {
    50: '#7668b3',
    500: '#312f92',
    950: '#000000',
  },
}
SCSS
$custom: #312f92;
$custom-light: #7668b3;
$custom-dark: #000000;
JSON
{
  "hex": "#312f92",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 146
  },
  "hsl": {
    "h": 241.212,
    "s": 51.295,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37614,
    "c": 0.15757,
    "h": 276.6
  },
  "luminance": 0.04761
}

Semantic roles & 50–950 ramp

primary
#312F92
secondary
#B5B766
accent
#DB4DD8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #312F92

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

Preview Lab → · Contrast checker → · Palette generator →

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