#2C31A9#2C31A9

#2C31A9 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.9% C 0.187 H 272.4°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#2C31A9
RGBrgb(44, 49, 169)
HSLhsl(238, 59%, 42%)
HSVhsv(238, 74%, 66%)
CMYKcmyk(74%, 71%, 0%, 33.7%)
CIE-LABlab(28.37, 39.12, -64.46)
CIE-LCHlch(28.37, 75.40, 301.26°)
OKLaboklab(39.88% 0.0077 -0.1865)
OKLCHoklch(39.88% 0.187 272.4)
XYZxyz(9.2960, 5.5957, 38.1186)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C31A9 #A9A42C
analogous
#2C70A9 #2C31A9 #662CA9
triadic
#2C31A9 #A92C31 #31A92C
tetradic
#2C31A9 #A92C70 #A9A42C #2CA966
square
#2C31A9 #A92C70 #A9A42C #2CA966
split-complementary
#2C31A9 #A9662C #70A92C
monochromatic
#131548 #1F2378 #2C31A9 #4449CE #7479DB

Accessibility & contrast

On white

9.91
#2C31A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2C31A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C31A9
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C31A9#FFFFFF#000000##FFFFFF
##2C31A91.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AD
Deuteranopia (green-blind)
#003DA7
Tritanopia (blue-blind)
#005269
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2c31a9;
/* rgb */ color: rgb(44, 49, 169);
/* oklch */ color: oklch(39.9% 0.187 272.4);
Tailwind
colors: {
  custom: {
    50: '#796ac4',
    500: '#2c31a9',
    950: '#000000',
  },
}
SCSS
$custom: #2c31a9;
$custom-light: #796ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c31a9",
  "rgb": {
    "r": 44,
    "g": 49,
    "b": 169
  },
  "hsl": {
    "h": 237.6,
    "s": 58.685,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39877,
    "c": 0.18664,
    "h": 272.4
  },
  "luminance": 0.05597
}

Semantic roles & 50–950 ramp

primary
#2C31A9
secondary
#C3BF6E
accent
#DC46E2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2C31A9

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

Preview Lab → · Contrast checker → · Palette generator →

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