#2C2082#2C2082

#2C2082 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.155 H 279.3°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#2C2082
RGBrgb(44, 32, 130)
HSLhsl(247, 60%, 32%)
HSVhsv(247, 75%, 51%)
CMYKcmyk(66.2%, 75.4%, 0%, 49%)
CIE-LABlab(20.75, 35.96, -52.98)
CIE-LCHlch(20.75, 64.03, 304.17°)
OKLaboklab(33.24% 0.0251 -0.1529)
OKLCHoklch(33.24% 0.155 279.3)
XYZxyz(5.5832, 3.1798, 21.4343)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2082 #768220
analogous
#204582 #2C2082 #5D2082
triadic
#2C2082 #822C20 #20822C
tetradic
#2C2082 #822045 #768220 #20825D
square
#2C2082 #822045 #768220 #20825D
split-complementary
#2C2082 #825D20 #458220
monochromatic
#0B0820 #1B1451 #2C2082 #3D2CB3 #5B4AD2

Accessibility & contrast

On white

12.84
#2C2082 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2C2082 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2082
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2082#FFFFFF#000000##FFFFFF
##2C20821.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#002E80
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2c2082;
/* rgb */ color: rgb(44, 32, 130);
/* oklch */ color: oklch(33.2% 0.155 279.3);
Tailwind
colors: {
  custom: {
    50: '#715da7',
    500: '#2c2082',
    950: '#000000',
  },
}
SCSS
$custom: #2c2082;
$custom-light: #715da7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2082",
  "rgb": {
    "r": 44,
    "g": 32,
    "b": 130
  },
  "hsl": {
    "h": 247.347,
    "s": 60.494,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33242,
    "c": 0.15497,
    "h": 279.3
  },
  "luminance": 0.0318
}

Semantic roles & 50–950 ramp

primary
#2C2082
secondary
#A7B549
accent
#E444D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C2082

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

Preview Lab → · Contrast checker → · Palette generator →

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