#312EA2#312EA2

#312EA2 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.0% C 0.180 H 275.3°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#312EA2
RGBrgb(49, 46, 162)
HSLhsl(242, 56%, 41%)
HSVhsv(242, 72%, 64%)
CMYKcmyk(69.8%, 71.6%, 0%, 36.5%)
CIE-LABlab(27.34, 39.08, -61.92)
CIE-LCHlch(27.34, 73.22, 302.26°)
OKLaboklab(39.01% 0.0165 -0.1789)
OKLCHoklch(39.01% 0.18 275.3)
XYZxyz(8.7631, 5.2148, 34.7202)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312EA2 #9FA22E
analogous
#2E65A2 #312EA2 #6B2EA2
triadic
#312EA2 #A2312E #2EA231
tetradic
#312EA2 #A22E65 #9FA22E #2EA26B
square
#312EA2 #A22E65 #9FA22E #2EA26B
split-complementary
#312EA2 #A26B2E #65A22E
monochromatic
#141343 #232072 #312EA2 #4743CA #7673D7

Accessibility & contrast

On white

10.28
#312EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#312EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312EA2
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312EA2#FFFFFF#000000##FFFFFF
##312EA21.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A5
Deuteranopia (green-blind)
#003BA0
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #312ea2;
/* rgb */ color: rgb(49, 46, 162);
/* oklch */ color: oklch(39.0% 0.180 275.3);
Tailwind
colors: {
  custom: {
    50: '#7968bf',
    500: '#312ea2',
    950: '#000000',
  },
}
SCSS
$custom: #312ea2;
$custom-light: #7968bf;
$custom-dark: #000000;
JSON
{
  "hex": "#312ea2",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 241.552,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39013,
    "c": 0.17969,
    "h": 275.3
  },
  "luminance": 0.05216
}

Semantic roles & 50–950 ramp

primary
#312EA2
secondary
#BDBF6D
accent
#DF49DB
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #312EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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