#312AC8#312AC8

#312AC8 is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 42.5% C 0.229 H 272.7°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#312AC8
RGBrgb(49, 42, 200)
HSLhsl(243, 65%, 47%)
HSVhsv(243, 79%, 78%)
CMYKcmyk(75.5%, 79%, 0%, 21.6%)
CIE-LABlab(30.59, 53.57, -79.17)
CIE-LCHlch(30.59, 95.60, 304.08°)
OKLaboklab(42.5% 0.0108 -0.2291)
OKLCHoklch(42.5% 0.229 272.7)
XYZxyz(12.5164, 6.4777, 55.2231)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312AC8 #C1C82A
analogous
#2A72C8 #312AC8 #802AC8
triadic
#312AC8 #C8312A #2AC831
tetradic
#312AC8 #C82A72 #C1C82A #2AC880
square
#312AC8 #C82A72 #C1C82A #2AC880
split-complementary
#312AC8 #C8802A #72C82A
monochromatic
#181563 #251F95 #312AC8 #5A54DB #8B87E6

Accessibility & contrast

On white

9.15
#312AC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#312AC8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312AC8
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312AC8#FFFFFF#000000##FFFFFF
##312AC81.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FCC
Deuteranopia (green-blind)
#0040C5
Tritanopia (blue-blind)
#005B79
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #312ac8;
/* rgb */ color: rgb(49, 42, 200);
/* oklch */ color: oklch(42.5% 0.229 272.7);
Tailwind
colors: {
  custom: {
    50: '#8367da',
    500: '#312ac8',
    950: '#000000',
  },
}
SCSS
$custom: #312ac8;
$custom-light: #8367da;
$custom-dark: #000000;
JSON
{
  "hex": "#312ac8",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 200
  },
  "hsl": {
    "h": 242.658,
    "s": 65.289,
    "l": 47.451
  },
  "oklch": {
    "l": 0.42498,
    "c": 0.22936,
    "h": 272.7
  },
  "luminance": 0.06479
}

Semantic roles & 50–950 ramp

primary
#312AC8
secondary
#CCCF7F
accent
#E840E1
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0615
muted
#7D7A83

Preview Lab

Preview with #312AC8

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

Preview Lab → · Contrast checker → · Palette generator →

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