#312CBF#312CBF

#312CBF is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.8% C 0.217 H 273.2°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#312CBF
RGBrgb(49, 44, 191)
HSLhsl(242, 63%, 46%)
HSVhsv(242, 77%, 75%)
CMYKcmyk(74.3%, 77%, 0%, 25.1%)
CIE-LABlab(29.95, 49.74, -74.95)
CIE-LCHlch(29.95, 89.95, 303.57°)
OKLaboklab(41.76% 0.012 -0.2169)
OKLCHoklch(41.76% 0.217 273.2)
XYZxyz(11.5681, 6.2147, 49.8700)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CBF #BABF2C
analogous
#2C70BF #312CBF #7A2CBF
triadic
#312CBF #BF312C #2CBF31
tetradic
#312CBF #BF2C70 #BABF2C #2CBF7A
square
#312CBF #BF2C70 #BABF2C #2CBF7A
split-complementary
#312CBF #BF7A2C #70BF2C
monochromatic
#17155C #24218D #312CBF #5651D7 #8683E2

Accessibility & contrast

On white

9.36
#312CBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#312CBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312CBF
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CBF#FFFFFF#000000##FFFFFF
##312CBF1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC3
Deuteranopia (green-blind)
#003FBC
Tritanopia (blue-blind)
#005874
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #312cbf;
/* rgb */ color: rgb(49, 44, 191);
/* oklch */ color: oklch(41.8% 0.217 273.2);
Tailwind
colors: {
  custom: {
    50: '#8068d4',
    500: '#312cbf',
    950: '#000000',
  },
}
SCSS
$custom: #312cbf;
$custom-light: #8068d4;
$custom-dark: #000000;
JSON
{
  "hex": "#312cbf",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 191
  },
  "hsl": {
    "h": 242.041,
    "s": 62.553,
    "l": 46.078
  },
  "oklch": {
    "l": 0.4176,
    "c": 0.21719,
    "h": 273.2
  },
  "luminance": 0.06216
}

Semantic roles & 50–950 ramp

primary
#312CBF
secondary
#C9CC7B
accent
#E642E0
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #312CBF

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

Preview Lab → · Contrast checker → · Palette generator →

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