#2C31AD#2C31AD

#2C31AD is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.3% C 0.192 H 272.1°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#2C31AD
RGBrgb(44, 49, 173)
HSLhsl(238, 59%, 43%)
HSVhsv(238, 75%, 68%)
CMYKcmyk(74.6%, 71.7%, 0%, 32.2%)
CIE-LABlab(28.77, 40.51, -66.20)
CIE-LCHlch(28.77, 77.61, 301.46°)
OKLaboklab(40.28% 0.0071 -0.1916)
OKLCHoklch(40.28% 0.192 272.1)
XYZxyz(9.6773, 5.7482, 40.1266)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C31AD #ADA82C
analogous
#2C72AD #2C31AD #672CAD
triadic
#2C31AD #AD2C31 #31AD2C
tetradic
#2C31AD #AD2C72 #ADA82C #2CAD67
square
#2C31AD #AD2C72 #ADA82C #2CAD67
split-complementary
#2C31AD #AD672C #72AD2C
monochromatic
#13154B #20237C #2C31AD #464CD0 #777BDC

Accessibility & contrast

On white

9.77
#2C31AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2C31AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C31AD
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C31AD#FFFFFF#000000##FFFFFF
##2C31AD1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB1
Deuteranopia (green-blind)
#003EAB
Tritanopia (blue-blind)
#00546B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2c31ad;
/* rgb */ color: rgb(44, 49, 173);
/* oklch */ color: oklch(40.3% 0.192 272.1);
Tailwind
colors: {
  custom: {
    50: '#7a6ac7',
    500: '#2c31ad',
    950: '#000000',
  },
}
SCSS
$custom: #2c31ad;
$custom-light: #7a6ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c31ad",
  "rgb": {
    "r": 44,
    "g": 49,
    "b": 173
  },
  "hsl": {
    "h": 237.674,
    "s": 59.447,
    "l": 42.549
  },
  "oklch": {
    "l": 0.40284,
    "c": 0.1917,
    "h": 272.1
  },
  "luminance": 0.05749
}

Semantic roles & 50–950 ramp

primary
#2C31AD
secondary
#C4C171
accent
#DD45E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2C31AD

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

Preview Lab → · Contrast checker → · Palette generator →

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