#2C31C0#2C31C0

#2C31C0 is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 42.3% C 0.215 H 271.1°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#2C31C0
RGBrgb(44, 49, 192)
HSLhsl(238, 63%, 46%)
HSVhsv(238, 77%, 75%)
CMYKcmyk(77.1%, 74.5%, 0%, 24.7%)
CIE-LABlab(30.73, 46.94, -74.25)
CIE-LCHlch(30.73, 87.85, 302.30°)
OKLaboklab(42.27% 0.0042 -0.215)
OKLCHoklch(42.27% 0.215 271.1)
XYZxyz(11.6482, 6.5366, 50.5067)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C31C0 #C0BB2C
analogous
#2C7BC0 #2C31C0 #712CC0
triadic
#2C31C0 #C02C31 #31C02C
tetradic
#2C31C0 #C02C7B #C0BB2C #2CC071
square
#2C31C0 #C02C7B #C0BB2C #2CC071
split-complementary
#2C31C0 #C0712C #7BC02C
monochromatic
#15185C #21248E #2C31C0 #5256D7 #8487E3

Accessibility & contrast

On white

9.10
#2C31C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2C31C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C31C0
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C31C0#FFFFFF#000000##FFFFFF
##2C31C01.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C4
Deuteranopia (green-blind)
#0041BD
Tritanopia (blue-blind)
#005B76
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2c31c0;
/* rgb */ color: rgb(44, 49, 192);
/* oklch */ color: oklch(42.3% 0.215 271.1);
Tailwind
colors: {
  custom: {
    50: '#7e6bd4',
    500: '#2c31c0',
    950: '#000000',
  },
}
SCSS
$custom: #2c31c0;
$custom-light: #7e6bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c31c0",
  "rgb": {
    "r": 44,
    "g": 49,
    "b": 192
  },
  "hsl": {
    "h": 237.973,
    "s": 62.712,
    "l": 46.275
  },
  "oklch": {
    "l": 0.42266,
    "c": 0.21504,
    "h": 271.1
  },
  "luminance": 0.06538
}

Semantic roles & 50–950 ramp

primary
#2C31C0
secondary
#CCC97C
accent
#E042E6
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #2C31C0

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

Preview Lab → · Contrast checker → · Palette generator →

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