#312B60#312B60

#312B60 is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.6% C 0.091 H 285.3°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#312B60
RGBrgb(49, 43, 96)
HSLhsl(247, 38%, 27%)
HSVhsv(247, 55%, 38%)
CMYKcmyk(49%, 55.2%, 0%, 62.4%)
CIE-LABlab(20.92, 18.19, -30.78)
CIE-LCHlch(20.92, 35.75, 300.59°)
OKLaboklab(32.57% 0.024 -0.0875)
OKLCHoklch(32.57% 0.091 285.3)
XYZxyz(4.2412, 3.2251, 11.4631)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312B60 #5A602B
analogous
#2B4060 #312B60 #4B2B60
triadic
#312B60 #60312B #2B6031
tetradic
#312B60 #602B40 #5A602B #2B604B
square
#312B60 #602B40 #5A602B #2B604B
split-complementary
#312B60 #604B2B #40602B
monochromatic
#0B0915 #1B1836 #312B60 #473E8A #5E53B2

Accessibility & contrast

On white

12.77
#312B60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#312B60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312B60
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312B60#FFFFFF#000000##FFFFFF
##312B601.0012.771.6512.77
#FFFFFF12.771.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123462
Deuteranopia (green-blind)
#11315F
Tritanopia (blue-blind)
#223641
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #312b60;
/* rgb */ color: rgb(49, 43, 96);
/* oklch */ color: oklch(32.6% 0.091 285.3);
Tailwind
colors: {
  custom: {
    50: '#6d648d',
    500: '#312b60',
    950: '#000000',
  },
}
SCSS
$custom: #312b60;
$custom-light: #6d648d;
$custom-dark: #000000;
JSON
{
  "hex": "#312b60",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 96
  },
  "hsl": {
    "h": 246.792,
    "s": 38.129,
    "l": 27.255
  },
  "oklch": {
    "l": 0.32565,
    "c": 0.09078,
    "h": 285.3
  },
  "luminance": 0.03225
}

Semantic roles & 50–950 ramp

primary
#312B60
secondary
#8B9255
accent
#CE5AC1
background
#F6F6F8
surface
#ECEBF0
border
#C7C6CB
text
#07050C
muted
#7A7A7D

Preview Lab

Preview with #312B60

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

Preview Lab → · Contrast checker → · Palette generator →

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