#312F95#312F95

#312F95 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.9% C 0.162 H 276.3°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#312F95
RGBrgb(49, 47, 149)
HSLhsl(241, 52%, 38%)
HSVhsv(241, 68%, 58%)
CMYKcmyk(67.1%, 68.5%, 0%, 41.6%)
CIE-LABlab(26.32, 34.00, -55.66)
CIE-LCHlch(26.32, 65.22, 301.42°)
OKLaboklab(37.9% 0.0177 -0.1606)
OKLCHoklch(37.9% 0.162 276.3)
XYZxyz(7.7062, 4.8553, 28.9590)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312F95 #93952F
analogous
#2F6095 #312F95 #642F95
triadic
#312F95 #95312F #2F9531
tetradic
#312F95 #952F60 #93952F #2F9564
square
#312F95 #952F60 #93952F #2F9564
split-complementary
#312F95 #95642F #60952F
monochromatic
#121238 #222066 #312F95 #413FC2 #6F6DD1

Accessibility & contrast

On white

10.65
#312F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#312F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312F95
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312F95#FFFFFF#000000##FFFFFF
##312F951.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004398
Deuteranopia (green-blind)
#003A93
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #312f95;
/* rgb */ color: rgb(49, 47, 149);
/* oklch */ color: oklch(37.9% 0.162 276.3);
Tailwind
colors: {
  custom: {
    50: '#7668b5',
    500: '#312f95',
    950: '#000000',
  },
}
SCSS
$custom: #312f95;
$custom-light: #7668b5;
$custom-dark: #000000;
JSON
{
  "hex": "#312f95",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 241.176,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.379,
    "c": 0.16159,
    "h": 276.3
  },
  "luminance": 0.04856
}

Semantic roles & 50–950 ramp

primary
#312F95
secondary
#B7B867
accent
#DB4CD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #312F95

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

Preview Lab → · Contrast checker → · Palette generator →

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