#2C2080#2C2080

#2C2080 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.152 H 279.7°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#2C2080
RGBrgb(44, 32, 128)
HSLhsl(248, 60%, 31%)
HSVhsv(248, 75%, 50%)
CMYKcmyk(65.6%, 75%, 0%, 49.8%)
CIE-LABlab(20.54, 35.29, -52.06)
CIE-LCHlch(20.54, 62.89, 304.14°)
OKLaboklab(33.03% 0.0256 -0.1502)
OKLCHoklch(33.03% 0.152 279.7)
XYZxyz(5.4503, 3.1266, 20.7342)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2080 #748020
analogous
#204480 #2C2080 #5C2080
triadic
#2C2080 #802C20 #20802C
tetradic
#2C2080 #802044 #748020 #20805C
square
#2C2080 #802044 #748020 #20805C
split-complementary
#2C2080 #805C20 #448020
monochromatic
#0A081E #1B144F #2C2080 #3D2CB1 #5A49D1

Accessibility & contrast

On white

12.92
#2C2080 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2C2080 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2080
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2080#FFFFFF#000000##FFFFFF
##2C20801.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c2080;
/* rgb */ color: rgb(44, 32, 128);
/* oklch */ color: oklch(33.0% 0.152 279.7);
Tailwind
colors: {
  custom: {
    50: '#715da6',
    500: '#2c2080',
    950: '#000000',
  },
}
SCSS
$custom: #2c2080;
$custom-light: #715da6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2080",
  "rgb": {
    "r": 44,
    "g": 32,
    "b": 128
  },
  "hsl": {
    "h": 247.5,
    "s": 60,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33034,
    "c": 0.15238,
    "h": 279.7
  },
  "luminance": 0.03127
}

Semantic roles & 50–950 ramp

primary
#2C2080
secondary
#A6B349
accent
#E345CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2C2080

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

Preview Lab → · Contrast checker → · Palette generator →

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