#312C8A#312C8A

#312C8A is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.3% C 0.150 H 278.2°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#312C8A
RGBrgb(49, 44, 138)
HSLhsl(243, 52%, 36%)
HSVhsv(243, 68%, 54%)
CMYKcmyk(64.5%, 68.1%, 0%, 45.9%)
CIE-LABlab(24.60, 32.07, -51.66)
CIE-LCHlch(24.60, 60.81, 301.84°)
OKLaboklab(36.35% 0.0214 -0.1489)
OKLCHoklch(36.35% 0.15 278.2)
XYZxyz(6.7533, 4.2888, 24.5118)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312C8A #858A2C
analogous
#2C568A #312C8A #602C8A
triadic
#312C8A #8A312C #2C8A31
tetradic
#312C8A #8A2C56 #858A2C #2C8A60
square
#312C8A #8A2C56 #858A2C #2C8A60
split-complementary
#312C8A #8A602C #568A2C
monochromatic
#100E2D #211D5C #312C8A #413BB8 #6963CD

Accessibility & contrast

On white

11.30
#312C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#312C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312C8A
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312C8A#FFFFFF#000000##FFFFFF
##312C8A1.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003788
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #312c8a;
/* rgb */ color: rgb(49, 44, 138);
/* oklch */ color: oklch(36.3% 0.150 278.2);
Tailwind
colors: {
  custom: {
    50: '#7466ad',
    500: '#312c8a',
    950: '#000000',
  },
}
SCSS
$custom: #312c8a;
$custom-light: #7466ad;
$custom-dark: #000000;
JSON
{
  "hex": "#312c8a",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 243.191,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36347,
    "c": 0.15045,
    "h": 278.2
  },
  "luminance": 0.04289
}

Semantic roles & 50–950 ramp

primary
#312C8A
secondary
#AFB45E
accent
#DB4DD4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #312C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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