#312BBA#312BBA

#312BBA is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 41.1% C 0.212 H 273.6°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#312BBA
RGBrgb(49, 43, 186)
HSLhsl(243, 62%, 45%)
HSVhsv(243, 77%, 73%)
CMYKcmyk(73.7%, 76.9%, 0%, 27.1%)
CIE-LABlab(29.22, 48.67, -73.19)
CIE-LCHlch(29.22, 87.90, 303.62°)
OKLaboklab(41.09% 0.0135 -0.2117)
OKLCHoklch(41.09% 0.212 273.6)
XYZxyz(10.9905, 5.9248, 47.0092)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312BBA #B4BA2B
analogous
#2B6DBA #312BBA #782BBA
triadic
#312BBA #BA312B #2BBA31
tetradic
#312BBA #BA2B6D #B4BA2B #2BBA78
square
#312BBA #BA2B6D #B4BA2B #2BBA78
split-complementary
#312BBA #BA782B #6DBA2B
monochromatic
#171457 #242088 #312BBA #524CD6 #827EE1

Accessibility & contrast

On white

9.61
#312BBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#312BBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312BBA
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312BBA#FFFFFF#000000##FFFFFF
##312BBA1.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBE
Deuteranopia (green-blind)
#003EB7
Tritanopia (blue-blind)
#005671
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #312bba;
/* rgb */ color: rgb(49, 43, 186);
/* oklch */ color: oklch(41.1% 0.212 273.6);
Tailwind
colors: {
  custom: {
    50: '#7f67d0',
    500: '#312bba',
    950: '#000000',
  },
}
SCSS
$custom: #312bba;
$custom-light: #7f67d0;
$custom-dark: #000000;
JSON
{
  "hex": "#312bba",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 186
  },
  "hsl": {
    "h": 242.517,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4109,
    "c": 0.21218,
    "h": 273.6
  },
  "luminance": 0.05926
}

Semantic roles & 50–950 ramp

primary
#312BBA
secondary
#C6CA77
accent
#E642DF
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #312BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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