#312F83#312F83

#312F83 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.2% C 0.137 H 278.1°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#312F83
RGBrgb(49, 47, 131)
HSLhsl(241, 47%, 35%)
HSVhsv(241, 64%, 51%)
CMYKcmyk(62.6%, 64.1%, 0%, 48.6%)
CIE-LABlab(24.72, 27.69, -47.10)
CIE-LCHlch(24.72, 54.64, 300.45°)
OKLaboklab(36.24% 0.0194 -0.1355)
OKLCHoklch(36.24% 0.137 278.1)
XYZxyz(6.3786, 4.3242, 21.9669)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312F83 #81832F
analogous
#2F5783 #312F83 #5B2F83
triadic
#312F83 #83312F #2F8331
tetradic
#312F83 #832F57 #81832F #2F835B
square
#312F83 #832F57 #81832F #2F835B
split-complementary
#312F83 #835B2F #57832F
monochromatic
#0F0F29 #201F56 #312F83 #423FB0 #6765C8

Accessibility & contrast

On white

11.26
#312F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#312F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312F83
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312F83#FFFFFF#000000##FFFFFF
##312F831.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E86
Deuteranopia (green-blind)
#003781
Tritanopia (blue-blind)
#004454
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #312f83;
/* rgb */ color: rgb(49, 47, 131);
/* oklch */ color: oklch(36.2% 0.137 278.1);
Tailwind
colors: {
  custom: {
    50: '#7368a8',
    500: '#312f83',
    950: '#000000',
  },
}
SCSS
$custom: #312f83;
$custom-light: #7368a8;
$custom-dark: #000000;
JSON
{
  "hex": "#312f83",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 131
  },
  "hsl": {
    "h": 241.429,
    "s": 47.191,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36237,
    "c": 0.13691,
    "h": 278.1
  },
  "luminance": 0.04325
}

Semantic roles & 50–950 ramp

primary
#312F83
secondary
#ADAF5F
accent
#D751D4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #312F83

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

Preview Lab → · Contrast checker → · Palette generator →

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