#312FAA#312FAA

#312FAA is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.0% C 0.189 H 274.4°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#312FAA
RGBrgb(49, 47, 170)
HSLhsl(241, 57%, 43%)
HSVhsv(241, 72%, 67%)
CMYKcmyk(71.2%, 72.4%, 0%, 33.3%)
CIE-LABlab(28.35, 41.19, -65.09)
CIE-LCHlch(28.35, 77.02, 302.33°)
OKLaboklab(39.97% 0.0146 -0.1882)
OKLCHoklch(39.97% 0.189 274.4)
XYZxyz(9.5364, 5.5874, 38.5983)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FAA #A8AA2F
analogous
#2F6AAA #312FAA #6F2FAA
triadic
#312FAA #AA312F #2FAA31
tetradic
#312FAA #AA2F6A #A8AA2F #2FAA6F
square
#312FAA #AA2F6A #A8AA2F #2FAA6F
split-complementary
#312FAA #AA6F2F #6AAA2F
monochromatic
#15144A #23227A #312FAA #4C49CD #7B79DA

Accessibility & contrast

On white

9.92
#312FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#312FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FAA
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FAA#FFFFFF#000000##FFFFFF
##312FAA1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#003DA8
Tritanopia (blue-blind)
#005269
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #312faa;
/* rgb */ color: rgb(49, 47, 170);
/* oklch */ color: oklch(40.0% 0.189 274.4);
Tailwind
colors: {
  custom: {
    50: '#7b69c4',
    500: '#312faa',
    950: '#000000',
  },
}
SCSS
$custom: #312faa;
$custom-light: #7b69c4;
$custom-dark: #000000;
JSON
{
  "hex": "#312faa",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 240.976,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.39974,
    "c": 0.18875,
    "h": 274.4
  },
  "luminance": 0.05588
}

Semantic roles & 50–950 ramp

primary
#312FAA
secondary
#C1C272
accent
#E048DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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