#312AAB#312AAB

#312AAB is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.4% C 0.195 H 275.0°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#312AAB
RGBrgb(49, 42, 171)
HSLhsl(243, 61%, 42%)
HSVhsv(243, 75%, 67%)
CMYKcmyk(71.3%, 75.4%, 0%, 32.9%)
CIE-LABlab(27.43, 44.37, -67.20)
CIE-LCHlch(27.43, 80.53, 303.44°)
OKLaboklab(39.35% 0.0171 -0.1943)
OKLCHoklch(39.35% 0.195 275)
XYZxyz(9.4428, 5.2483, 39.0356)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312AAB #A4AB2A
analogous
#2A64AB #312AAB #722AAB
triadic
#312AAB #AB312A #2AAB31
tetradic
#312AAB #AB2A64 #A4AB2A #2AAB72
square
#312AAB #AB2A64 #A4AB2A #2AAB72
split-complementary
#312AAB #AB722A #64AB2A
monochromatic
#151249 #231E7A #312AAB #4942D1 #7973DD

Accessibility & contrast

On white

10.24
#312AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#312AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312AAB
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312AAB#FFFFFF#000000##FFFFFF
##312AAB1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AF
Deuteranopia (green-blind)
#003BA9
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #312aab;
/* rgb */ color: rgb(49, 42, 171);
/* oklch */ color: oklch(39.4% 0.195 275.0);
Tailwind
colors: {
  custom: {
    50: '#7c66c5',
    500: '#312aab',
    950: '#000000',
  },
}
SCSS
$custom: #312aab;
$custom-light: #7c66c5;
$custom-dark: #000000;
JSON
{
  "hex": "#312aab",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 243.256,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39353,
    "c": 0.19506,
    "h": 275
  },
  "luminance": 0.05249
}

Semantic roles & 50–950 ramp

primary
#312AAB
secondary
#BFC46D
accent
#E444DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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