#312BA8#312BA8

#312BA8 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.2% C 0.190 H 275.2°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#312BA8
RGBrgb(49, 43, 168)
HSLhsl(243, 59%, 41%)
HSVhsv(243, 74%, 66%)
CMYKcmyk(70.8%, 74.4%, 0%, 34.1%)
CIE-LABlab(27.32, 42.83, -65.58)
CIE-LCHlch(27.32, 78.33, 303.15°)
OKLaboklab(39.18% 0.0172 -0.1896)
OKLCHoklch(39.18% 0.19 275.2)
XYZxyz(9.1961, 5.2070, 37.5586)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312BA8 #A2A82B
analogous
#2B64A8 #312BA8 #702BA8
triadic
#312BA8 #A8312B #2BA831
tetradic
#312BA8 #A82B64 #A2A82B #2BA870
square
#312BA8 #A82B64 #A2A82B #2BA870
split-complementary
#312BA8 #A8702B #64A82B
monochromatic
#151247 #231F77 #312BA8 #4842CF #7772DB

Accessibility & contrast

On white

10.29
#312BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#312BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312BA8
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312BA8#FFFFFF#000000##FFFFFF
##312BA81.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#003BA6
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #312ba8;
/* rgb */ color: rgb(49, 43, 168);
/* oklch */ color: oklch(39.2% 0.190 275.2);
Tailwind
colors: {
  custom: {
    50: '#7b66c3',
    500: '#312ba8',
    950: '#000000',
  },
}
SCSS
$custom: #312ba8;
$custom-light: #7b66c3;
$custom-dark: #000000;
JSON
{
  "hex": "#312ba8",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 242.88,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39179,
    "c": 0.19038,
    "h": 275.2
  },
  "luminance": 0.05208
}

Semantic roles & 50–950 ramp

primary
#312BA8
secondary
#BEC26C
accent
#E245DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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