#312AA8#312AA8

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

Color values

HEX#312AA8
RGBrgb(49, 42, 168)
HSLhsl(243, 60%, 41%)
HSVhsv(243, 75%, 66%)
CMYKcmyk(70.8%, 75%, 0%, 34.1%)
CIE-LABlab(27.12, 43.39, -65.91)
CIE-LCHlch(27.12, 78.91, 303.36°)
OKLaboklab(39.04% 0.0177 -0.1906)
OKLCHoklch(39.04% 0.191 275.3)
XYZxyz(9.1601, 5.1352, 37.5466)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312AA8 #A1A82A
analogous
#2A62A8 #312AA8 #702AA8
triadic
#312AA8 #A8312A #2AA831
tetradic
#312AA8 #A82A62 #A1A82A #2AA870
square
#312AA8 #A82A62 #A1A82A #2AA870
split-complementary
#312AA8 #A8702A #62A82A
monochromatic
#141246 #231E77 #312AA8 #4840CF #7771DB

Accessibility & contrast

On white

10.36
#312AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#312AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312AA8
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312AA8#FFFFFF#000000##FFFFFF
##312AA81.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#003AA6
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #312aa8;
/* rgb */ color: rgb(49, 42, 168);
/* oklch */ color: oklch(39.0% 0.191 275.3);
Tailwind
colors: {
  custom: {
    50: '#7b66c3',
    500: '#312aa8',
    950: '#000000',
  },
}
SCSS
$custom: #312aa8;
$custom-light: #7b66c3;
$custom-dark: #000000;
JSON
{
  "hex": "#312aa8",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 243.333,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39037,
    "c": 0.19138,
    "h": 275.3
  },
  "luminance": 0.05136
}

Semantic roles & 50–950 ramp

primary
#312AA8
secondary
#BEC36B
accent
#E345DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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