#312DA5#312DA5

#312DA5 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.2% C 0.185 H 275.2°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#312DA5
RGBrgb(49, 45, 165)
HSLhsl(242, 57%, 41%)
HSVhsv(242, 73%, 65%)
CMYKcmyk(70.3%, 72.7%, 0%, 35.3%)
CIE-LABlab(27.42, 40.68, -63.59)
CIE-LCHlch(27.42, 75.49, 302.61°)
OKLaboklab(39.16% 0.0166 -0.1838)
OKLCHoklch(39.16% 0.185 275.2)
XYZxyz(8.9943, 5.2455, 36.1285)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312DA5 #A1A52D
analogous
#2D65A5 #312DA5 #6D2DA5
triadic
#312DA5 #A5312D #2DA531
tetradic
#312DA5 #A52D65 #A1A52D #2DA56D
square
#312DA5 #A52D65 #A1A52D #2DA56D
split-complementary
#312DA5 #A56D2D #65A52D
monochromatic
#141345 #232075 #312DA5 #4843CC #7773D9

Accessibility & contrast

On white

10.25
#312DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312DA5
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312DA5#FFFFFF#000000##FFFFFF
##312DA51.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#003BA3
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #312da5;
/* rgb */ color: rgb(49, 45, 165);
/* oklch */ color: oklch(39.2% 0.185 275.2);
Tailwind
colors: {
  custom: {
    50: '#7a67c1',
    500: '#312da5',
    950: '#000000',
  },
}
SCSS
$custom: #312da5;
$custom-light: #7a67c1;
$custom-dark: #000000;
JSON
{
  "hex": "#312da5",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 165
  },
  "hsl": {
    "h": 242,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39163,
    "c": 0.18457,
    "h": 275.2
  },
  "luminance": 0.05246
}

Semantic roles & 50–950 ramp

primary
#312DA5
secondary
#BEC16D
accent
#E047DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #312DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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