#312696#312696

#312696 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.6% C 0.173 H 277.9°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#312696
RGBrgb(49, 38, 150)
HSLhsl(246, 60%, 37%)
HSVhsv(246, 75%, 59%)
CMYKcmyk(67.3%, 74.7%, 0%, 41.2%)
CIE-LABlab(24.45, 39.75, -59.34)
CIE-LCHlch(24.45, 71.42, 303.81°)
OKLaboklab(36.59% 0.0239 -0.1714)
OKLCHoklch(36.59% 0.173 277.9)
XYZxyz(7.4630, 4.2406, 29.2735)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312696 #8B9626
analogous
#265396 #312696 #692696
triadic
#312696 #963126 #269631
tetradic
#312696 #962653 #8B9626 #269669
square
#312696 #962653 #8B9626 #269669
split-complementary
#312696 #966926 #539626
monochromatic
#110D34 #211A65 #312696 #4132C7 #6B60D7

Accessibility & contrast

On white

11.36
#312696 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#312696 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312696
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312696#FFFFFF#000000##FFFFFF
##3126961.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003594
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #312696;
/* rgb */ color: rgb(49, 38, 150);
/* oklch */ color: oklch(36.6% 0.173 277.9);
Tailwind
colors: {
  custom: {
    50: '#7862b6',
    500: '#312696',
    950: '#000000',
  },
}
SCSS
$custom: #312696;
$custom-light: #7862b6;
$custom-dark: #000000;
JSON
{
  "hex": "#312696",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 150
  },
  "hsl": {
    "h": 245.893,
    "s": 59.574,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36592,
    "c": 0.17302,
    "h": 277.9
  },
  "luminance": 0.04241
}

Semantic roles & 50–950 ramp

primary
#312696
secondary
#B2BC5C
accent
#E345D3
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312696

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

Preview Lab → · Contrast checker → · Palette generator →

#312696 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva