#2C31CA#2C31CA

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

Color values

HEX#2C31CA
RGBrgb(44, 49, 202)
HSLhsl(238, 64%, 48%)
HSVhsv(238, 78%, 79%)
CMYKcmyk(78.2%, 75.7%, 0%, 20.8%)
CIE-LABlab(31.80, 50.23, -78.35)
CIE-LCHlch(31.80, 93.07, 302.67°)
OKLaboklab(43.34% 0.0025 -0.2269)
OKLCHoklch(43.34% 0.227 270.6)
XYZxyz(12.7941, 6.9949, 56.5415)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C31CA #CAC52C
analogous
#2C80CA #2C31CA #762CCA
triadic
#2C31CA #CA2C31 #31CA2C
tetradic
#2C31CA #CA2C80 #CAC52C #2CCA76
square
#2C31CA #CA2C80 #CAC52C #2CCA76
split-complementary
#2C31CA #CA762C #80CA2C
monochromatic
#161965 #212598 #2C31CA #585DDB #8B8EE6

Accessibility & contrast

On white

8.75
#2C31CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C31CA
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C31CA#FFFFFF#000000##FFFFFF
##2C31CA1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.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: #2c31ca;
/* rgb */ color: rgb(44, 49, 202);
/* oklch */ color: oklch(43.3% 0.227 270.6);
Tailwind
colors: {
  custom: {
    50: '#816bdc',
    500: '#2c31ca',
    950: '#000000',
  },
}
SCSS
$custom: #2c31ca;
$custom-light: #816bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#2c31ca",
  "rgb": {
    "r": 44,
    "g": 49,
    "b": 202
  },
  "hsl": {
    "h": 238.101,
    "s": 64.228,
    "l": 48.235
  },
  "oklch": {
    "l": 0.43337,
    "c": 0.22691,
    "h": 270.6
  },
  "luminance": 0.06996
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C31CA

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

Preview Lab → · Contrast checker → · Palette generator →

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