#2C1A98#2C1A98

#2C1A98 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.9% C 0.188 H 276.9°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#2C1A98
RGBrgb(44, 26, 152)
HSLhsl(249, 71%, 35%)
HSVhsv(249, 83%, 60%)
CMYKcmyk(71.1%, 82.9%, 0%, 40.4%)
CIE-LABlab(22.09, 46.13, -64.48)
CIE-LCHlch(22.09, 79.29, 305.58°)
OKLaboklab(34.9% 0.0225 -0.1863)
OKLCHoklch(34.9% 0.188 276.9)
XYZxyz(7.0738, 3.5406, 30.0103)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A98 #86981A
analogous
#1A4798 #2C1A98 #6B1A98
triadic
#2C1A98 #982C1A #1A982C
tetradic
#2C1A98 #981A47 #86981A #1A986B
square
#2C1A98 #981A47 #86981A #1A986B
split-complementary
#2C1A98 #986B1A #47981A
monochromatic
#0E082F #1D1164 #2C1A98 #3B23CC #614CE0

Accessibility & contrast

On white

12.29
#2C1A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2C1A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1A98
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1A98#FFFFFF#000000##FFFFFF
##2C1A981.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9B
Deuteranopia (green-blind)
#002F96
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c1a98;
/* rgb */ color: rgb(44, 26, 152);
/* oklch */ color: oklch(34.9% 0.188 276.9);
Tailwind
colors: {
  custom: {
    50: '#775bb8',
    500: '#2c1a98',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a98;
$custom-light: #775bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a98",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 152
  },
  "hsl": {
    "h": 248.571,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34902,
    "c": 0.1877,
    "h": 276.9
  },
  "luminance": 0.03541
}

Semantic roles & 50–950 ramp

primary
#2C1A98
secondary
#B1C24B
accent
#EE3AD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1A98

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

Preview Lab → · Contrast checker → · Palette generator →

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