#2D31CA#2D31CA

#2D31CA is a dark, highly saturated blue. Relative luminance 0.070; OKLCH L 43.4% C 0.227 H 270.9°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#2D31CA
RGBrgb(45, 49, 202)
HSLhsl(238, 64%, 48%)
HSVhsv(238, 78%, 79%)
CMYKcmyk(77.7%, 75.7%, 0%, 20.8%)
CIE-LABlab(31.85, 50.30, -78.26)
CIE-LCHlch(31.85, 93.04, 302.73°)
OKLaboklab(43.39% 0.0035 -0.2266)
OKLCHoklch(43.39% 0.227 270.9)
XYZxyz(12.8376, 7.0173, 56.5436)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D31CA #CAC62D
analogous
#2D7FCA #2D31CA #772DCA
triadic
#2D31CA #CA2D31 #31CA2D
tetradic
#2D31CA #CA2D7F #CAC62D #2DCA77
square
#2D31CA #CA2D7F #CAC62D #2DCA77
split-complementary
#2D31CA #CA772D #7FCA2D
monochromatic
#171966 #222598 #2D31CA #5A5DDA #8C8EE5

Accessibility & contrast

On white

8.74
#2D31CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2D31CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D31CA
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D31CA#FFFFFF#000000##FFFFFF
##2D31CA1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053CE
Deuteranopia (green-blind)
#0043C7
Tritanopia (blue-blind)
#005F7C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2d31ca;
/* rgb */ color: rgb(45, 49, 202);
/* oklch */ color: oklch(43.4% 0.227 270.9);
Tailwind
colors: {
  custom: {
    50: '#816bdc',
    500: '#2d31ca',
    950: '#000000',
  },
}
SCSS
$custom: #2d31ca;
$custom-light: #816bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d31ca",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 202
  },
  "hsl": {
    "h": 238.471,
    "s": 63.563,
    "l": 48.431
  },
  "oklch": {
    "l": 0.43387,
    "c": 0.22666,
    "h": 270.9
  },
  "luminance": 0.07019
}

Semantic roles & 50–950 ramp

primary
#2D31CA
secondary
#CFCE83
accent
#E241E7
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #2D31CA

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

Preview Lab → · Contrast checker → · Palette generator →

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