#2C2174#2C2174

#2C2174 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.135 H 281.6°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#2C2174
RGBrgb(44, 33, 116)
HSLhsl(248, 56%, 29%)
HSVhsv(248, 72%, 45%)
CMYKcmyk(62.1%, 71.6%, 0%, 54.5%)
CIE-LABlab(19.57, 30.63, -46.00)
CIE-LCHlch(19.57, 55.26, 303.67°)
OKLaboklab(31.98% 0.0271 -0.1325)
OKLCHoklch(31.98% 0.135 281.6)
XYZxyz(4.7340, 2.8838, 16.8268)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2174 #697421
analogous
#214074 #2C2174 #562174
triadic
#2C2174 #742C21 #21742C
tetradic
#2C2174 #742140 #697421 #217456
square
#2C2174 #742140 #697421 #217456
split-complementary
#2C2174 #745621 #407421
monochromatic
#090718 #1A1344 #2C2174 #3E2FA4 #5745CA

Accessibility & contrast

On white

13.32
#2C2174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2C2174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2174
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2174#FFFFFF#000000##FFFFFF
##2C21741.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#002C72
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c2174;
/* rgb */ color: rgb(44, 33, 116);
/* oklch */ color: oklch(32.0% 0.135 281.6);
Tailwind
colors: {
  custom: {
    50: '#6e5d9d',
    500: '#2c2174',
    950: '#000000',
  },
}
SCSS
$custom: #2c2174;
$custom-light: #6e5d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2174",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 247.952,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31977,
    "c": 0.13523,
    "h": 281.6
  },
  "luminance": 0.02884
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C2174

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

Preview Lab → · Contrast checker → · Palette generator →

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