#312C95#312C95

#312C95 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.4% C 0.165 H 276.9°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#312C95
RGBrgb(49, 44, 149)
HSLhsl(243, 54%, 38%)
HSVhsv(243, 70%, 58%)
CMYKcmyk(67.1%, 70.5%, 0%, 41.6%)
CIE-LABlab(25.63, 35.86, -56.78)
CIE-LCHlch(25.63, 67.15, 302.27°)
OKLaboklab(37.41% 0.0199 -0.1639)
OKLCHoklch(37.41% 0.165 276.9)
XYZxyz(7.5904, 4.6236, 28.9204)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312C95 #90952C
analogous
#2C5B95 #312C95 #652C95
triadic
#312C95 #95312C #2C9531
tetradic
#312C95 #952C5B #90952C #2C9565
square
#312C95 #952C5B #90952C #2C9565
split-complementary
#312C95 #95652C #5B952C
monochromatic
#121037 #211E66 #312C95 #413AC4 #6E69D3

Accessibility & contrast

On white

10.91
#312C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#312C95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312C95
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312C95#FFFFFF#000000##FFFFFF
##312C951.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004198
Deuteranopia (green-blind)
#003893
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #312c95;
/* rgb */ color: rgb(49, 44, 149);
/* oklch */ color: oklch(37.4% 0.165 276.9);
Tailwind
colors: {
  custom: {
    50: '#7766b5',
    500: '#312c95',
    950: '#000000',
  },
}
SCSS
$custom: #312c95;
$custom-light: #7766b5;
$custom-dark: #000000;
JSON
{
  "hex": "#312c95",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 149
  },
  "hsl": {
    "h": 242.857,
    "s": 54.404,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37406,
    "c": 0.16511,
    "h": 276.9
  },
  "luminance": 0.04624
}

Semantic roles & 50–950 ramp

primary
#312C95
secondary
#B5B964
accent
#DE4AD7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #312C95

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

Preview Lab → · Contrast checker → · Palette generator →

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