#312E95#312E95

#312E95 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.7% C 0.163 H 276.5°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#312E95
RGBrgb(49, 46, 149)
HSLhsl(242, 53%, 38%)
HSVhsv(242, 69%, 58%)
CMYKcmyk(67.1%, 69.1%, 0%, 41.6%)
CIE-LABlab(26.09, 34.63, -56.03)
CIE-LCHlch(26.09, 65.87, 301.71°)
OKLaboklab(37.73% 0.0184 -0.1617)
OKLCHoklch(37.73% 0.163 276.5)
XYZxyz(7.6667, 4.7762, 28.9458)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312E95 #92952E
analogous
#2E5E95 #312E95 #642E95
triadic
#312E95 #95312E #2E9531
tetradic
#312E95 #952E5E #92952E #2E9564
square
#312E95 #952E5E #92952E #2E9564
split-complementary
#312E95 #95642E #5E952E
monochromatic
#121137 #222066 #312E95 #413DC3 #6F6CD2

Accessibility & contrast

On white

10.74
#312E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#312E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312E95
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312E95#FFFFFF#000000##FFFFFF
##312E951.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004298
Deuteranopia (green-blind)
#003993
Tritanopia (blue-blind)
#00495D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #312e95;
/* rgb */ color: rgb(49, 46, 149);
/* oklch */ color: oklch(37.7% 0.163 276.5);
Tailwind
colors: {
  custom: {
    50: '#7767b5',
    500: '#312e95',
    950: '#000000',
  },
}
SCSS
$custom: #312e95;
$custom-light: #7767b5;
$custom-dark: #000000;
JSON
{
  "hex": "#312e95",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 149
  },
  "hsl": {
    "h": 241.748,
    "s": 52.821,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37733,
    "c": 0.16278,
    "h": 276.5
  },
  "luminance": 0.04777
}

Semantic roles & 50–950 ramp

primary
#312E95
secondary
#B6B966
accent
#DC4CD8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #312E95

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

Preview Lab → · Contrast checker → · Palette generator →

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