#312EBA#312EBA

#312EBA is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.5% C 0.209 H 273.3°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#312EBA
RGBrgb(49, 46, 186)
HSLhsl(241, 60%, 45%)
HSVhsv(241, 75%, 73%)
CMYKcmyk(73.7%, 75.3%, 0%, 27.1%)
CIE-LABlab(29.79, 47.05, -72.25)
CIE-LCHlch(29.79, 86.22, 303.07°)
OKLaboklab(41.49% 0.0122 -0.209)
OKLCHoklch(41.49% 0.209 273.3)
XYZxyz(11.1036, 6.1510, 47.0469)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312EBA #B7BA2E
analogous
#2E71BA #312EBA #772EBA
triadic
#312EBA #BA312E #2EBA31
tetradic
#312EBA #BA2E71 #B7BA2E #2EBA77
square
#312EBA #BA2E71 #B7BA2E #2EBA77
split-complementary
#312EBA #BA772E #71BA2E
monochromatic
#171658 #242289 #312EBA #5451D4 #8482E0

Accessibility & contrast

On white

9.42
#312EBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#312EBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312EBA
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312EBA#FFFFFF#000000##FFFFFF
##312EBA1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBE
Deuteranopia (green-blind)
#003FB8
Tritanopia (blue-blind)
#005772
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #312eba;
/* rgb */ color: rgb(49, 46, 186);
/* oklch */ color: oklch(41.5% 0.209 273.3);
Tailwind
colors: {
  custom: {
    50: '#7f69d0',
    500: '#312eba',
    950: '#000000',
  },
}
SCSS
$custom: #312eba;
$custom-light: #7f69d0;
$custom-dark: #000000;
JSON
{
  "hex": "#312eba",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 186
  },
  "hsl": {
    "h": 241.286,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.41491,
    "c": 0.2094,
    "h": 273.3
  },
  "luminance": 0.06152
}

Semantic roles & 50–950 ramp

primary
#312EBA
secondary
#C8C97B
accent
#E344E0
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #312EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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