#312EA7#312EA7

#312EA7 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.5% C 0.186 H 274.8°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#312EA7
RGBrgb(49, 46, 167)
HSLhsl(241, 57%, 42%)
HSVhsv(241, 72%, 65%)
CMYKcmyk(70.7%, 72.5%, 0%, 34.5%)
CIE-LABlab(27.83, 40.77, -64.12)
CIE-LCHlch(27.83, 75.98, 302.45°)
OKLaboklab(39.52% 0.0157 -0.1854)
OKLCHoklch(39.52% 0.186 274.8)
XYZxyz(9.2164, 5.3961, 37.1076)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312EA7 #A4A72E
analogous
#2E67A7 #312EA7 #6E2EA7
triadic
#312EA7 #A7312E #2EA731
tetradic
#312EA7 #A72E67 #A4A72E #2EA76E
square
#312EA7 #A72E67 #A4A72E #2EA76E
split-complementary
#312EA7 #A76E2E #67A72E
monochromatic
#151447 #232177 #312EA7 #4946CC #7976D9

Accessibility & contrast

On white

10.10
#312EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312EA7
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312EA7#FFFFFF#000000##FFFFFF
##312EA71.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#003CA5
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #312ea7;
/* rgb */ color: rgb(49, 46, 167);
/* oklch */ color: oklch(39.5% 0.186 274.8);
Tailwind
colors: {
  custom: {
    50: '#7b68c2',
    500: '#312ea7',
    950: '#000000',
  },
}
SCSS
$custom: #312ea7;
$custom-light: #7b68c2;
$custom-dark: #000000;
JSON
{
  "hex": "#312ea7",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 241.488,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39518,
    "c": 0.18603,
    "h": 274.8
  },
  "luminance": 0.05397
}

Semantic roles & 50–950 ramp

primary
#312EA7
secondary
#BFC170
accent
#E048DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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