#312AC4#312AC4

#312AC4 is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 42.1% C 0.225 H 273.0°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#312AC4
RGBrgb(49, 42, 196)
HSLhsl(243, 65%, 47%)
HSVhsv(243, 79%, 77%)
CMYKcmyk(75%, 78.6%, 0%, 23.1%)
CIE-LABlab(30.14, 52.33, -77.57)
CIE-LCHlch(30.14, 93.57, 304.01°)
OKLaboklab(42.06% 0.0117 -0.2244)
OKLCHoklch(42.06% 0.225 273)
XYZxyz(12.0551, 6.2932, 52.7932)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312AC4 #BDC42A
analogous
#2A70C4 #312AC4 #7E2AC4
triadic
#312AC4 #C4312A #2AC431
tetradic
#312AC4 #C42A70 #BDC42A #2AC47E
square
#312AC4 #C42A70 #BDC42A #2AC47E
split-complementary
#312AC4 #C47E2A #70C42A
monochromatic
#18145F #241F92 #312AC4 #5851DA #8884E5

Accessibility & contrast

On white

9.30
#312AC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#312AC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312AC4
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312AC4#FFFFFF#000000##FFFFFF
##312AC41.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC8
Deuteranopia (green-blind)
#003FC1
Tritanopia (blue-blind)
#005977
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #312ac4;
/* rgb */ color: rgb(49, 42, 196);
/* oklch */ color: oklch(42.1% 0.225 273.0);
Tailwind
colors: {
  custom: {
    50: '#8267d7',
    500: '#312ac4',
    950: '#000000',
  },
}
SCSS
$custom: #312ac4;
$custom-light: #8267d7;
$custom-dark: #000000;
JSON
{
  "hex": "#312ac4",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 196
  },
  "hsl": {
    "h": 242.727,
    "s": 64.706,
    "l": 46.667
  },
  "oklch": {
    "l": 0.42056,
    "c": 0.22475,
    "h": 273
  },
  "luminance": 0.06294
}

Semantic roles & 50–950 ramp

primary
#312AC4
secondary
#CACE7C
accent
#E840E0
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0615
muted
#7D7A83

Preview Lab

Preview with #312AC4

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

Preview Lab → · Contrast checker → · Palette generator →

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