#2C2172#2C2172

#2C2172 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.132 H 282.0°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#2C2172
RGBrgb(44, 33, 114)
HSLhsl(248, 55%, 29%)
HSVhsv(248, 71%, 45%)
CMYKcmyk(61.4%, 71.1%, 0%, 55.3%)
CIE-LABlab(19.38, 29.95, -45.02)
CIE-LCHlch(19.38, 54.07, 303.64°)
OKLaboklab(31.78% 0.0274 -0.1296)
OKLCHoklch(31.78% 0.132 282)
XYZxyz(4.6189, 2.8378, 16.2207)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2172 #677221
analogous
#213F72 #2C2172 #552172
triadic
#2C2172 #722C21 #21722C
tetradic
#2C2172 #72213F #677221 #217255
square
#2C2172 #72213F #677221 #217255
split-complementary
#2C2172 #725521 #3F7221
monochromatic
#090718 #1A1343 #2C2172 #3E2FA1 #5644C9

Accessibility & contrast

On white

13.40
#2C2172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2C2172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2172
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2172#FFFFFF#000000##FFFFFF
##2C21721.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#013646
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c2172;
/* rgb */ color: rgb(44, 33, 114);
/* oklch */ color: oklch(31.8% 0.132 282.0);
Tailwind
colors: {
  custom: {
    50: '#6e5d9b',
    500: '#2c2172',
    950: '#000000',
  },
}
SCSS
$custom: #2c2172;
$custom-light: #6e5d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2172",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 248.148,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31782,
    "c": 0.13249,
    "h": 282
  },
  "luminance": 0.02838
}

Semantic roles & 50–950 ramp

primary
#2C2172
secondary
#99A549
accent
#DE49CA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2C2172

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

Preview Lab → · Contrast checker → · Palette generator →

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