#2C1A90#2C1A90

#2C1A90 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.178 H 278.0°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#2C1A90
RGBrgb(44, 26, 144)
HSLhsl(249, 69%, 33%)
HSVhsv(249, 82%, 56%)
CMYKcmyk(69.4%, 81.9%, 0%, 43.5%)
CIE-LABlab(21.16, 43.67, -61.08)
CIE-LCHlch(21.16, 75.08, 305.57°)
OKLaboklab(33.99% 0.0249 -0.1764)
OKLCHoklch(33.99% 0.178 278)
XYZxyz(6.4405, 3.2873, 26.6753)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A90 #7E901A
analogous
#1A4390 #2C1A90 #671A90
triadic
#2C1A90 #902C1A #1A902C
tetradic
#2C1A90 #901A43 #7E901A #1A9067
square
#2C1A90 #901A43 #7E901A #1A9067
split-complementary
#2C1A90 #90671A #43901A
monochromatic
#0C0728 #1C115C #2C1A90 #3C23C4 #5E47DE

Accessibility & contrast

On white

12.67
#2C1A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2C1A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1A90
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1A90#FFFFFF#000000##FFFFFF
##2C1A901.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003793
Deuteranopia (green-blind)
#002E8E
Tritanopia (blue-blind)
#003E56
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2c1a90;
/* rgb */ color: rgb(44, 26, 144);
/* oklch */ color: oklch(34.0% 0.178 278.0);
Tailwind
colors: {
  custom: {
    50: '#755bb2',
    500: '#2c1a90',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a90;
$custom-light: #755bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a90",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 144
  },
  "hsl": {
    "h": 249.153,
    "s": 69.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33985,
    "c": 0.17819,
    "h": 278
  },
  "luminance": 0.03288
}

Semantic roles & 50–950 ramp

primary
#2C1A90
secondary
#ADBF47
accent
#EC3CD1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1A90

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

Preview Lab → · Contrast checker → · Palette generator →

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