#2C1F9E#2C1F9E

#2C1F9E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.191 H 275.6°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#2C1F9E
RGBrgb(44, 31, 158)
HSLhsl(246, 67%, 37%)
HSVhsv(246, 80%, 62%)
CMYKcmyk(72.2%, 80.4%, 0%, 38%)
CIE-LABlab(23.62, 45.57, -65.64)
CIE-LCHlch(23.62, 79.91, 304.77°)
OKLaboklab(36.16% 0.0187 -0.1898)
OKLCHoklch(36.16% 0.191 275.6)
XYZxyz(7.6982, 3.9833, 32.7043)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1F9E #919E1F
analogous
#1F519E #2C1F9E #6C1F9E
triadic
#2C1F9E #9E2C1F #1F9E2C
tetradic
#2C1F9E #9E1F51 #919E1F #1F9E6C
square
#2C1F9E #9E1F51 #919E1F #1F9E6C
split-complementary
#2C1F9E #9E6C1F #519E1F
monochromatic
#100B38 #1E156B #2C1F9E #3A29D1 #6759DE

Accessibility & contrast

On white

11.69
#2C1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2C1F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1F9E
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1F9E#FFFFFF#000000##FFFFFF
##2C1F9E1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00329C
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2c1f9e;
/* rgb */ color: rgb(44, 31, 158);
/* oklch */ color: oklch(36.2% 0.191 275.6);
Tailwind
colors: {
  custom: {
    50: '#785ebc',
    500: '#2c1f9e',
    950: '#000000',
  },
}
SCSS
$custom: #2c1f9e;
$custom-light: #785ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1f9e",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 246.142,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36163,
    "c": 0.19068,
    "h": 275.6
  },
  "luminance": 0.03984
}

Semantic roles & 50–950 ramp

primary
#2C1F9E
secondary
#B7C256
accent
#EA3ED8
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2C1F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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