#312E66#312E66

#312E66 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.6% C 0.095 H 282.4°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#312E66
RGBrgb(49, 46, 102)
HSLhsl(243, 38%, 29%)
HSVhsv(243, 55%, 40%)
CMYKcmyk(52%, 54.9%, 0%, 60%)
CIE-LABlab(22.18, 18.18, -32.68)
CIE-LCHlch(22.18, 37.40, 299.09°)
OKLaboklab(33.64% 0.0205 -0.0931)
OKLCHoklch(33.64% 0.095 282.4)
XYZxyz(4.6412, 3.5660, 13.0116)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312E66 #63662E
analogous
#2E4766 #312E66 #4D2E66
triadic
#312E66 #66312E #2E6631
tetradic
#312E66 #662E47 #63662E #2E664D
square
#312E66 #662E47 #63662E #2E664D
split-complementary
#312E66 #664D2E #47662E
monochromatic
#0A0A15 #1D1B3C #312E66 #454190 #5F5AB5

Accessibility & contrast

On white

12.26
#312E66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#312E66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312E66
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312E66#FFFFFF#000000##FFFFFF
##312E661.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123768
Deuteranopia (green-blind)
#0E3365
Tritanopia (blue-blind)
#1E3A45
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #312e66;
/* rgb */ color: rgb(49, 46, 102);
/* oklch */ color: oklch(33.6% 0.095 282.4);
Tailwind
colors: {
  custom: {
    50: '#6d6692',
    500: '#312e66',
    950: '#000000',
  },
}
SCSS
$custom: #312e66;
$custom-light: #6d6692;
$custom-dark: #000000;
JSON
{
  "hex": "#312e66",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 102
  },
  "hsl": {
    "h": 243.214,
    "s": 37.838,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33642,
    "c": 0.09535,
    "h": 282.4
  },
  "luminance": 0.03566
}

Semantic roles & 50–950 ramp

primary
#312E66
secondary
#949858
accent
#CE5AC8
background
#F6F6F9
surface
#ECEBF1
border
#C7C6CB
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #312E66

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

Preview Lab → · Contrast checker → · Palette generator →

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