#312BA9#312BA9

#312BA9 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.3% C 0.192 H 275.1°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#312BA9
RGBrgb(49, 43, 169)
HSLhsl(243, 59%, 42%)
HSVhsv(243, 75%, 66%)
CMYKcmyk(71%, 74.6%, 0%, 33.7%)
CIE-LABlab(27.42, 43.16, -66.01)
CIE-LCHlch(27.42, 78.87, 303.18°)
OKLaboklab(39.28% 0.017 -0.1909)
OKLCHoklch(39.28% 0.192 275.1)
XYZxyz(9.2896, 5.2444, 38.0511)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312BA9 #A3A92B
analogous
#2B64A9 #312BA9 #702BA9
triadic
#312BA9 #A9312B #2BA931
tetradic
#312BA9 #A92B64 #A3A92B #2BA970
square
#312BA9 #A92B64 #A3A92B #2BA970
split-complementary
#312BA9 #A9702B #64A92B
monochromatic
#151247 #231F78 #312BA9 #4942CF #7873DB

Accessibility & contrast

On white

10.25
#312BA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#312BA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312BA9
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312BA9#FFFFFF#000000##FFFFFF
##312BA91.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#003BA7
Tritanopia (blue-blind)
#004F68
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #312ba9;
/* rgb */ color: rgb(49, 43, 169);
/* oklch */ color: oklch(39.3% 0.192 275.1);
Tailwind
colors: {
  custom: {
    50: '#7b66c4',
    500: '#312ba9',
    950: '#000000',
  },
}
SCSS
$custom: #312ba9;
$custom-light: #7b66c4;
$custom-dark: #000000;
JSON
{
  "hex": "#312ba9",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 169
  },
  "hsl": {
    "h": 242.857,
    "s": 59.434,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39284,
    "c": 0.19161,
    "h": 275.1
  },
  "luminance": 0.05245
}

Semantic roles & 50–950 ramp

primary
#312BA9
secondary
#BFC36D
accent
#E345DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312BA9

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

Preview Lab → · Contrast checker → · Palette generator →

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