#312DAF#312DAF

#312DAF is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.2% C 0.197 H 274.3°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#312DAF
RGBrgb(49, 45, 175)
HSLhsl(242, 59%, 43%)
HSVhsv(242, 74%, 69%)
CMYKcmyk(72%, 74.3%, 0%, 31.4%)
CIE-LABlab(28.44, 44.01, -67.93)
CIE-LCHlch(28.44, 80.94, 302.94°)
OKLaboklab(40.2% 0.0148 -0.1965)
OKLCHoklch(40.2% 0.197 274.3)
XYZxyz(9.9403, 5.6239, 41.1108)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312DAF #ABAF2D
analogous
#2D6AAF #312DAF #722DAF
triadic
#312DAF #AF312D #2DAF31
tetradic
#312DAF #AF2D6A #ABAF2D #2DAF72
square
#312DAF #AF2D6A #ABAF2D #2DAF72
split-complementary
#312DAF #AF722D #6AAF2D
monochromatic
#16144E #23207E #312DAF #4D49D0 #7D7ADD

Accessibility & contrast

On white

9.88
#312DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#312DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312DAF
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312DAF#FFFFFF#000000##FFFFFF
##312DAF1.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B3
Deuteranopia (green-blind)
#003DAD
Tritanopia (blue-blind)
#00526C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #312daf;
/* rgb */ color: rgb(49, 45, 175);
/* oklch */ color: oklch(40.2% 0.197 274.3);
Tailwind
colors: {
  custom: {
    50: '#7c68c8',
    500: '#312daf',
    950: '#000000',
  },
}
SCSS
$custom: #312daf;
$custom-light: #7c68c8;
$custom-dark: #000000;
JSON
{
  "hex": "#312daf",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 175
  },
  "hsl": {
    "h": 241.846,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.40195,
    "c": 0.19701,
    "h": 274.3
  },
  "luminance": 0.05625
}

Semantic roles & 50–950 ramp

primary
#312DAF
secondary
#C2C573
accent
#E246DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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