#312AAF#312AAF

#312AAF is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.8% C 0.200 H 274.7°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#312AAF
RGBrgb(49, 42, 175)
HSLhsl(243, 61%, 43%)
HSVhsv(243, 76%, 69%)
CMYKcmyk(72%, 76%, 0%, 31.4%)
CIE-LABlab(27.85, 45.67, -68.90)
CIE-LCHlch(27.85, 82.66, 303.54°)
OKLaboklab(39.78% 0.0163 -0.1993)
OKLCHoklch(39.78% 0.2 274.7)
XYZxyz(9.8299, 5.4031, 41.0740)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312AAF #A8AF2A
analogous
#2A65AF #312AAF #742AAF
triadic
#312AAF #AF312A #2AAF31
tetradic
#312AAF #AF2A65 #A8AF2A #2AAF74
square
#312AAF #AF2A65 #A8AF2A #2AAF74
split-complementary
#312AAF #AF742A #65AF2A
monochromatic
#15124C #231E7E #312AAF #4C44D2 #7B75DE

Accessibility & contrast

On white

10.09
#312AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#312AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312AAF
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312AAF#FFFFFF#000000##FFFFFF
##312AAF1.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B3
Deuteranopia (green-blind)
#003CAD
Tritanopia (blue-blind)
#00516B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #312aaf;
/* rgb */ color: rgb(49, 42, 175);
/* oklch */ color: oklch(39.8% 0.200 274.7);
Tailwind
colors: {
  custom: {
    50: '#7d66c8',
    500: '#312aaf',
    950: '#000000',
  },
}
SCSS
$custom: #312aaf;
$custom-light: #7d66c8;
$custom-dark: #000000;
JSON
{
  "hex": "#312aaf",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 175
  },
  "hsl": {
    "h": 243.158,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.39778,
    "c": 0.19993,
    "h": 274.7
  },
  "luminance": 0.05404
}

Semantic roles & 50–950 ramp

primary
#312AAF
secondary
#C1C66F
accent
#E443DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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