#2C2173#2C2173

#2C2173 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.134 H 281.8°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#2C2173
RGBrgb(44, 33, 115)
HSLhsl(248, 55%, 29%)
HSVhsv(248, 71%, 45%)
CMYKcmyk(61.7%, 71.3%, 0%, 54.9%)
CIE-LABlab(19.48, 30.29, -45.51)
CIE-LCHlch(19.48, 54.67, 303.65°)
OKLaboklab(31.88% 0.0273 -0.131)
OKLCHoklch(31.88% 0.134 281.8)
XYZxyz(4.6761, 2.8607, 16.5221)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2173 #687321
analogous
#213F73 #2C2173 #552173
triadic
#2C2173 #732C21 #21732C
tetradic
#2C2173 #73213F #687321 #217355
square
#2C2173 #73213F #687321 #217355
split-complementary
#2C2173 #735521 #3F7321
monochromatic
#090718 #1A1343 #2C2173 #3E2FA3 #5745CA

Accessibility & contrast

On white

13.36
#2C2173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C2173
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2173#FFFFFF#000000##FFFFFF
##2C21731.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003276
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#003647
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c2173;
/* rgb */ color: rgb(44, 33, 115);
/* oklch */ color: oklch(31.9% 0.134 281.8);
Tailwind
colors: {
  custom: {
    50: '#6e5d9c',
    500: '#2c2173',
    950: '#000000',
  },
}
SCSS
$custom: #2c2173;
$custom-light: #6e5d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2173",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 248.049,
    "s": 55.405,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3188,
    "c": 0.13386,
    "h": 281.8
  },
  "luminance": 0.02861
}

Semantic roles & 50–950 ramp

primary
#2C2173
secondary
#9AA649
accent
#DF49CB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2C2173

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

Preview Lab → · Contrast checker → · Palette generator →

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