#312EA8#312EA8

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

Color values

HEX#312EA8
RGBrgb(49, 46, 168)
HSLhsl(241, 57%, 42%)
HSVhsv(241, 73%, 66%)
CMYKcmyk(70.8%, 72.6%, 0%, 34.1%)
CIE-LABlab(27.93, 41.10, -64.56)
CIE-LCHlch(27.93, 76.53, 302.48°)
OKLaboklab(39.62% 0.0155 -0.1866)
OKLCHoklch(39.62% 0.187 274.7)
XYZxyz(9.3092, 5.4332, 37.5963)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312EA8 #A5A82E
analogous
#2E68A8 #312EA8 #6E2EA8
triadic
#312EA8 #A8312E #2EA831
tetradic
#312EA8 #A82E68 #A5A82E #2EA86E
square
#312EA8 #A82E68 #A5A82E #2EA86E
split-complementary
#312EA8 #A86E2E #68A82E
monochromatic
#151448 #232178 #312EA8 #4A47CD #7977DA

Accessibility & contrast

On white

10.06
#312EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#312EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312EA8
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312EA8#FFFFFF#000000##FFFFFF
##312EA81.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#003CA6
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #312ea8;
/* rgb */ color: rgb(49, 46, 168);
/* oklch */ color: oklch(39.6% 0.187 274.7);
Tailwind
colors: {
  custom: {
    50: '#7b68c3',
    500: '#312ea8',
    950: '#000000',
  },
}
SCSS
$custom: #312ea8;
$custom-light: #7b68c3;
$custom-dark: #000000;
JSON
{
  "hex": "#312ea8",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 241.475,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39619,
    "c": 0.18729,
    "h": 274.7
  },
  "luminance": 0.05434
}

Semantic roles & 50–950 ramp

primary
#312EA8
secondary
#C0C270
accent
#E048DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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