#2C31A2#2C31A2

#2C31A2 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.2% C 0.178 H 272.8°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#2C31A2
RGBrgb(44, 49, 162)
HSLhsl(237, 57%, 40%)
HSVhsv(237, 73%, 64%)
CMYKcmyk(72.8%, 69.8%, 0%, 36.5%)
CIE-LABlab(27.68, 36.67, -61.36)
CIE-LCHlch(27.68, 71.49, 300.87°)
OKLaboklab(39.17% 0.0086 -0.1774)
OKLCHoklch(39.17% 0.178 272.8)
XYZxyz(8.6564, 5.3399, 34.7499)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C31A2 #A29D2C
analogous
#2C6CA2 #2C31A2 #622CA2
triadic
#2C31A2 #A22C31 #31A22C
tetradic
#2C31A2 #A22C6C #A29D2C #2CA262
square
#2C31A2 #A22C6C #A29D2C #2CA262
split-complementary
#2C31A2 #A2622C #6CA22C
monochromatic
#121442 #1F2272 #2C31A2 #4046CB #7075D8

Accessibility & contrast

On white

10.15
#2C31A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2C31A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C31A2
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C31A2#FFFFFF#000000##FFFFFF
##2C31A21.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#003CA0
Tritanopia (blue-blind)
#005065
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2c31a2;
/* rgb */ color: rgb(44, 49, 162);
/* oklch */ color: oklch(39.2% 0.178 272.8);
Tailwind
colors: {
  custom: {
    50: '#776abf',
    500: '#2c31a2',
    950: '#000000',
  },
}
SCSS
$custom: #2c31a2;
$custom-light: #776abf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c31a2",
  "rgb": {
    "r": 44,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 237.458,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39174,
    "c": 0.17765,
    "h": 272.8
  },
  "luminance": 0.05341
}

Semantic roles & 50–950 ramp

primary
#2C31A2
secondary
#BFBC6A
accent
#DA47E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2C31A2

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

Preview Lab → · Contrast checker → · Palette generator →

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