#2C31C4#2C31C4

#2C31C4 is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.7% C 0.220 H 270.9°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#2C31C4
RGBrgb(44, 49, 196)
HSLhsl(238, 63%, 47%)
HSVhsv(238, 78%, 77%)
CMYKcmyk(77.6%, 75%, 0%, 23.1%)
CIE-LABlab(31.15, 48.27, -75.90)
CIE-LCHlch(31.15, 89.95, 302.45°)
OKLaboklab(42.69% 0.0035 -0.2198)
OKLCHoklch(42.69% 0.22 270.9)
XYZxyz(12.0974, 6.7163, 52.8726)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C31C4 #C4BF2C
analogous
#2C7DC4 #2C31C4 #732CC4
triadic
#2C31C4 #C42C31 #31C42C
tetradic
#2C31C4 #C42C7D #C4BF2C #2CC473
square
#2C31C4 #C42C7D #C4BF2C #2CC473
split-complementary
#2C31C4 #C4732C #7DC42C
monochromatic
#161860 #212592 #2C31C4 #5459D9 #868AE4

Accessibility & contrast

On white

8.96
#2C31C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2C31C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C31C4
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C31C4#FFFFFF#000000##FFFFFF
##2C31C41.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C8
Deuteranopia (green-blind)
#0042C1
Tritanopia (blue-blind)
#005C78
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2c31c4;
/* rgb */ color: rgb(44, 49, 196);
/* oklch */ color: oklch(42.7% 0.220 270.9);
Tailwind
colors: {
  custom: {
    50: '#7f6bd7',
    500: '#2c31c4',
    950: '#000000',
  },
}
SCSS
$custom: #2c31c4;
$custom-light: #7f6bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c31c4",
  "rgb": {
    "r": 44,
    "g": 49,
    "b": 196
  },
  "hsl": {
    "h": 238.026,
    "s": 63.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.42693,
    "c": 0.21983,
    "h": 270.9
  },
  "luminance": 0.06718
}

Semantic roles & 50–950 ramp

primary
#2C31C4
secondary
#CDCB7E
accent
#E141E6
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #2C31C4

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

Preview Lab → · Contrast checker → · Palette generator →

#2C31C4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva