#312BA1#312BA1

#312BA1 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.5% C 0.182 H 275.9°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#312BA1
RGBrgb(49, 43, 161)
HSLhsl(243, 58%, 40%)
HSVhsv(243, 73%, 63%)
CMYKcmyk(69.6%, 73.3%, 0%, 36.9%)
CIE-LABlab(26.60, 40.51, -62.52)
CIE-LCHlch(26.60, 74.50, 302.94°)
OKLaboklab(38.46% 0.0185 -0.1807)
OKLCHoklch(38.46% 0.182 275.9)
XYZxyz(8.5614, 4.9531, 34.2162)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312BA1 #9BA12B
analogous
#2B60A1 #312BA1 #6C2BA1
triadic
#312BA1 #A1312B #2BA131
tetradic
#312BA1 #A12B60 #9BA12B #2BA16C
square
#312BA1 #A12B60 #9BA12B #2BA16C
split-complementary
#312BA1 #A16C2B #60A12B
monochromatic
#141140 #221E71 #312BA1 #453ECB #746ED8

Accessibility & contrast

On white

10.55
#312BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#312BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312BA1
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312BA1#FFFFFF#000000##FFFFFF
##312BA11.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A4
Deuteranopia (green-blind)
#003A9F
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #312ba1;
/* rgb */ color: rgb(49, 43, 161);
/* oklch */ color: oklch(38.5% 0.182 275.9);
Tailwind
colors: {
  custom: {
    50: '#7966be',
    500: '#312ba1',
    950: '#000000',
  },
}
SCSS
$custom: #312ba1;
$custom-light: #7966be;
$custom-dark: #000000;
JSON
{
  "hex": "#312ba1",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 161
  },
  "hsl": {
    "h": 243.051,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.38456,
    "c": 0.18164,
    "h": 275.9
  },
  "luminance": 0.04954
}

Semantic roles & 50–950 ramp

primary
#312BA1
secondary
#BBBF69
accent
#E147D9
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #312BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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