#312BA6#312BA6

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

Color values

HEX#312BA6
RGBrgb(49, 43, 166)
HSLhsl(243, 59%, 41%)
HSVhsv(243, 74%, 65%)
CMYKcmyk(70.5%, 74.1%, 0%, 34.9%)
CIE-LABlab(27.11, 42.17, -64.71)
CIE-LCHlch(27.11, 77.24, 303.09°)
OKLaboklab(38.97% 0.0176 -0.1871)
OKLCHoklch(38.97% 0.188 275.4)
XYZxyz(9.0112, 5.1331, 36.5849)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312BA6 #A0A62B
analogous
#2B62A6 #312BA6 #6E2BA6
triadic
#312BA6 #A6312B #2BA631
tetradic
#312BA6 #A62B62 #A0A62B #2BA66E
square
#312BA6 #A62B62 #A0A62B #2BA66E
split-complementary
#312BA6 #A66E2B #62A62B
monochromatic
#141245 #231E75 #312BA6 #4741CE #7671DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##312BA6#FFFFFF#000000##FFFFFF
##312BA61.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)
#0045AA
Deuteranopia (green-blind)
#003AA4
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #312ba6;
/* rgb */ color: rgb(49, 43, 166);
/* oklch */ color: oklch(39.0% 0.188 275.4);
Tailwind
colors: {
  custom: {
    50: '#7b66c2',
    500: '#312ba6',
    950: '#000000',
  },
}
SCSS
$custom: #312ba6;
$custom-light: #7b66c2;
$custom-dark: #000000;
JSON
{
  "hex": "#312ba6",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 242.927,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38971,
    "c": 0.1879,
    "h": 275.4
  },
  "luminance": 0.05134
}

Semantic roles & 50–950 ramp

primary
#312BA6
secondary
#BDC16B
accent
#E246DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #312BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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