#2C1D98#2C1D98

#2C1D98 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.185 H 276.6°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#2C1D98
RGBrgb(44, 29, 152)
HSLhsl(247, 68%, 35%)
HSVhsv(247, 81%, 60%)
CMYKcmyk(71.1%, 80.9%, 0%, 40.4%)
CIE-LABlab(22.59, 44.69, -63.66)
CIE-LCHlch(22.59, 77.78, 305.07°)
OKLaboklab(35.24% 0.0212 -0.184)
OKLCHoklch(35.24% 0.185 276.6)
XYZxyz(7.1437, 3.6805, 30.0336)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1D98 #89981D
analogous
#1D4B98 #2C1D98 #691D98
triadic
#2C1D98 #982C1D #1D982C
tetradic
#2C1D98 #981D4B #89981D #1D9869
square
#2C1D98 #981D4B #89981D #1D9869
split-complementary
#2C1D98 #98691D #4B981D
monochromatic
#0E0931 #1D1365 #2C1D98 #3B27CB #6352DE

Accessibility & contrast

On white

12.10
#2C1D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2C1D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1D98
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1D98#FFFFFF#000000##FFFFFF
##2C1D981.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.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: #2c1d98;
/* rgb */ color: rgb(44, 29, 152);
/* oklch */ color: oklch(35.2% 0.185 276.6);
Tailwind
colors: {
  custom: {
    50: '#775db8',
    500: '#2c1d98',
    950: '#000000',
  },
}
SCSS
$custom: #2c1d98;
$custom-light: #775db8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1d98",
  "rgb": {
    "r": 44,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 247.317,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35245,
    "c": 0.18522,
    "h": 276.6
  },
  "luminance": 0.03681
}

Semantic roles & 50–950 ramp

primary
#2C1D98
secondary
#B3C150
accent
#EB3DD6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1D98

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

Preview Lab → · Contrast checker → · Palette generator →

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