#2C1E98#2C1E98

#2C1E98 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.4% C 0.184 H 276.5°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#2C1E98
RGBrgb(44, 30, 152)
HSLhsl(247, 67%, 36%)
HSVhsv(247, 80%, 60%)
CMYKcmyk(71.1%, 80.3%, 0%, 40.4%)
CIE-LABlab(22.76, 44.19, -63.38)
CIE-LCHlch(22.76, 77.26, 304.88°)
OKLaboklab(35.37% 0.0208 -0.1832)
OKLCHoklch(35.37% 0.184 276.5)
XYZxyz(7.1686, 3.7304, 30.0419)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1E98 #8A981E
analogous
#1E4D98 #2C1E98 #691E98
triadic
#2C1E98 #982C1E #1E982C
tetradic
#2C1E98 #981E4D #8A981E #1E9869
square
#2C1E98 #981E4D #8A981E #1E9869
split-complementary
#2C1E98 #98691E #4D981E
monochromatic
#0E0A32 #1D1465 #2C1E98 #3B28CB #6353DD

Accessibility & contrast

On white

12.03
#2C1E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2C1E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1E98
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1E98#FFFFFF#000000##FFFFFF
##2C1E981.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9B
Deuteranopia (green-blind)
#003196
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c1e98;
/* rgb */ color: rgb(44, 30, 152);
/* oklch */ color: oklch(35.4% 0.184 276.5);
Tailwind
colors: {
  custom: {
    50: '#775db8',
    500: '#2c1e98',
    950: '#000000',
  },
}
SCSS
$custom: #2c1e98;
$custom-light: #775db8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1e98",
  "rgb": {
    "r": 44,
    "g": 30,
    "b": 152
  },
  "hsl": {
    "h": 246.885,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35366,
    "c": 0.18435,
    "h": 276.5
  },
  "luminance": 0.03731
}

Semantic roles & 50–950 ramp

primary
#2C1E98
secondary
#B4C051
accent
#EA3ED6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1E98

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

Preview Lab → · Contrast checker → · Palette generator →

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