#2C2180#2C2180

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

Color values

HEX#2C2180
RGBrgb(44, 33, 128)
HSLhsl(247, 59%, 32%)
HSVhsv(247, 74%, 50%)
CMYKcmyk(65.6%, 74.2%, 0%, 49.8%)
CIE-LABlab(20.76, 34.70, -51.71)
CIE-LCHlch(20.76, 62.27, 303.87°)
OKLaboklab(33.18% 0.0248 -0.1492)
OKLCHoklch(33.18% 0.151 279.5)
XYZxyz(5.4776, 3.1813, 20.7433)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2180 #758021
analogous
#214680 #2C2180 #5C2180
triadic
#2C2180 #802C21 #21802C
tetradic
#2C2180 #802146 #758021 #21805C
square
#2C2180 #802146 #758021 #21805C
split-complementary
#2C2180 #805C21 #468021
monochromatic
#0B081F #1B144F #2C2180 #3D2EB1 #5A4BD1

Accessibility & contrast

On white

12.83
#2C2180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C2180
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2180#FFFFFF#000000##FFFFFF
##2C21801.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003683
Deuteranopia (green-blind)
#002E7E
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2c2180;
/* rgb */ color: rgb(44, 33, 128);
/* oklch */ color: oklch(33.2% 0.151 279.5);
Tailwind
colors: {
  custom: {
    50: '#715ea6',
    500: '#2c2180',
    950: '#000000',
  },
}
SCSS
$custom: #2c2180;
$custom-light: #715ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2180",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 246.947,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33185,
    "c": 0.15125,
    "h": 279.5
  },
  "luminance": 0.03182
}

Semantic roles & 50–950 ramp

primary
#2C2180
secondary
#A7B34A
accent
#E246D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2C2180

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

Preview Lab → · Contrast checker → · Palette generator →

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