#312AB8#312AB8

#312AB8 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.7% C 0.211 H 273.9°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#312AB8
RGBrgb(49, 42, 184)
HSLhsl(243, 63%, 44%)
HSVhsv(243, 77%, 72%)
CMYKcmyk(73.4%, 77.2%, 0%, 27.8%)
CIE-LABlab(28.82, 48.56, -72.67)
CIE-LCHlch(28.82, 87.40, 303.75°)
OKLaboklab(40.74% 0.0143 -0.2102)
OKLCHoklch(40.74% 0.211 273.9)
XYZxyz(10.7434, 5.7685, 45.8853)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312AB8 #B1B82A
analogous
#2A6AB8 #312AB8 #782AB8
triadic
#312AB8 #B8312A #2AB831
tetradic
#312AB8 #B82A6A #B1B82A #2AB878
square
#312AB8 #B82A6A #B1B82A #2AB878
split-complementary
#312AB8 #B8782A #6AB82A
monochromatic
#161354 #241F86 #312AB8 #514AD6 #807BE1

Accessibility & contrast

On white

9.75
#312AB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#312AB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312AB8
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312AB8#FFFFFF#000000##FFFFFF
##312AB81.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ABC
Deuteranopia (green-blind)
#003DB6
Tritanopia (blue-blind)
#005570
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #312ab8;
/* rgb */ color: rgb(49, 42, 184);
/* oklch */ color: oklch(40.7% 0.211 273.9);
Tailwind
colors: {
  custom: {
    50: '#7f66cf',
    500: '#312ab8',
    950: '#000000',
  },
}
SCSS
$custom: #312ab8;
$custom-light: #7f66cf;
$custom-dark: #000000;
JSON
{
  "hex": "#312ab8",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 184
  },
  "hsl": {
    "h": 242.958,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.40744,
    "c": 0.21071,
    "h": 273.9
  },
  "luminance": 0.0577
}

Semantic roles & 50–950 ramp

primary
#312AB8
secondary
#C5C975
accent
#E642DE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #312AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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