#2C31A6#2C31A6

#2C31A6 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.6% C 0.183 H 272.5°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#2C31A6
RGBrgb(44, 49, 166)
HSLhsl(238, 58%, 41%)
HSVhsv(238, 73%, 65%)
CMYKcmyk(73.5%, 70.5%, 0%, 34.9%)
CIE-LABlab(28.07, 38.08, -63.14)
CIE-LCHlch(28.07, 73.73, 301.09°)
OKLaboklab(39.57% 0.0081 -0.1826)
OKLCHoklch(39.57% 0.183 272.5)
XYZxyz(9.0176, 5.4844, 36.6523)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C31A6 #A6A12C
analogous
#2C6EA6 #2C31A6 #642CA6
triadic
#2C31A6 #A62C31 #31A62C
tetradic
#2C31A6 #A62C6E #A6A12C #2CA664
square
#2C31A6 #A62C6E #A6A12C #2CA664
split-complementary
#2C31A6 #A6642C #6EA62C
monochromatic
#121445 #1F2376 #2C31A6 #4248CD #7377DA

Accessibility & contrast

On white

10.01
#2C31A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2C31A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C31A6
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C31A6#FFFFFF#000000##FFFFFF
##2C31A61.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#003CA4
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2c31a6;
/* rgb */ color: rgb(44, 49, 166);
/* oklch */ color: oklch(39.6% 0.183 272.5);
Tailwind
colors: {
  custom: {
    50: '#786ac2',
    500: '#2c31a6',
    950: '#000000',
  },
}
SCSS
$custom: #2c31a6;
$custom-light: #786ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c31a6",
  "rgb": {
    "r": 44,
    "g": 49,
    "b": 166
  },
  "hsl": {
    "h": 237.541,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39574,
    "c": 0.18281,
    "h": 272.5
  },
  "luminance": 0.05485
}

Semantic roles & 50–950 ramp

primary
#2C31A6
secondary
#C1BE6D
accent
#DB46E1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2C31A6

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

Preview Lab → · Contrast checker → · Palette generator →

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