#312F94#312F94

#312F94 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.8% C 0.160 H 276.4°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#312F94
RGBrgb(49, 47, 148)
HSLhsl(241, 52%, 38%)
HSVhsv(241, 68%, 58%)
CMYKcmyk(66.9%, 68.2%, 0%, 42%)
CIE-LABlab(26.23, 33.65, -55.19)
CIE-LCHlch(26.23, 64.64, 301.37°)
OKLaboklab(37.8% 0.0178 -0.1593)
OKLCHoklch(37.8% 0.16 276.4)
XYZxyz(7.6267, 4.8235, 28.5403)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312F94 #92942F
analogous
#2F5F94 #312F94 #632F94
triadic
#312F94 #94312F #2F9431
tetradic
#312F94 #942F5F #92942F #2F9463
square
#312F94 #942F5F #92942F #2F9463
split-complementary
#312F94 #94632F #5F942F
monochromatic
#121137 #222066 #312F94 #413EC2 #6F6DD1

Accessibility & contrast

On white

10.69
#312F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312F94
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312F94#FFFFFF#000000##FFFFFF
##312F941.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004297
Deuteranopia (green-blind)
#003A92
Tritanopia (blue-blind)
#004A5D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #312f94;
/* rgb */ color: rgb(49, 47, 148);
/* oklch */ color: oklch(37.8% 0.160 276.4);
Tailwind
colors: {
  custom: {
    50: '#7668b4',
    500: '#312f94',
    950: '#000000',
  },
}
SCSS
$custom: #312f94;
$custom-light: #7668b4;
$custom-dark: #000000;
JSON
{
  "hex": "#312f94",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 241.188,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37804,
    "c": 0.16026,
    "h": 276.4
  },
  "luminance": 0.04824
}

Semantic roles & 50–950 ramp

primary
#312F94
secondary
#B6B867
accent
#DB4DD8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #312F94

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

Preview Lab → · Contrast checker → · Palette generator →

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