#2D31C4#2D31C4

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

Color values

HEX#2D31C4
RGBrgb(45, 49, 196)
HSLhsl(238, 63%, 47%)
HSVhsv(238, 77%, 77%)
CMYKcmyk(77%, 75%, 0%, 23.1%)
CIE-LABlab(31.20, 48.34, -75.82)
CIE-LCHlch(31.20, 89.92, 302.52°)
OKLaboklab(42.74% 0.0046 -0.2195)
OKLCHoklch(42.74% 0.22 271.2)
XYZxyz(12.1409, 6.7387, 52.8747)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D31C4 #C4C02D
analogous
#2D7CC4 #2D31C4 #752DC4
triadic
#2D31C4 #C42D31 #31C42D
tetradic
#2D31C4 #C42D7C #C4C02D #2DC475
square
#2D31C4 #C42D7C #C4C02D #2DC475
split-complementary
#2D31C4 #C4752D #7CC42D
monochromatic
#161860 #222592 #2D31C4 #5659D8 #888AE4

Accessibility & contrast

On white

8.94
#2D31C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2D31C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D31C4
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D31C4#FFFFFF#000000##FFFFFF
##2D31C41.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.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: #2d31c4;
/* rgb */ color: rgb(45, 49, 196);
/* oklch */ color: oklch(42.7% 0.220 271.2);
Tailwind
colors: {
  custom: {
    50: '#806bd7',
    500: '#2d31c4',
    950: '#000000',
  },
}
SCSS
$custom: #2d31c4;
$custom-light: #806bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d31c4",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 196
  },
  "hsl": {
    "h": 238.411,
    "s": 62.656,
    "l": 47.255
  },
  "oklch": {
    "l": 0.42744,
    "c": 0.21957,
    "h": 271.2
  },
  "luminance": 0.0674
}

Semantic roles & 50–950 ramp

primary
#2D31C4
secondary
#CDCB80
accent
#E142E6
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #2D31C4

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

Preview Lab → · Contrast checker → · Palette generator →

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