#2C1F9F#2C1F9F

#2C1F9F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.3% C 0.192 H 275.5°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#2C1F9F
RGBrgb(44, 31, 159)
HSLhsl(246, 67%, 37%)
HSVhsv(246, 81%, 62%)
CMYKcmyk(72.3%, 80.5%, 0%, 37.6%)
CIE-LABlab(23.73, 45.89, -66.06)
CIE-LCHlch(23.73, 80.43, 304.79°)
OKLaboklab(36.28% 0.0185 -0.191)
OKLCHoklch(36.28% 0.192 275.5)
XYZxyz(7.7846, 4.0179, 33.1594)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1F9F #929F1F
analogous
#1F529F #2C1F9F #6C1F9F
triadic
#2C1F9F #9F2C1F #1F9F2C
tetradic
#2C1F9F #9F1F52 #929F1F #1F9F6C
square
#2C1F9F #9F1F52 #929F1F #1F9F6C
split-complementary
#2C1F9F #9F6C1F #529F1F
monochromatic
#100B39 #1E156C #2C1F9F #3A29D2 #675ADF

Accessibility & contrast

On white

11.64
#2C1F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1F9F
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1F9F#FFFFFF#000000##FFFFFF
##2C1F9F1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2c1f9f;
/* rgb */ color: rgb(44, 31, 159);
/* oklch */ color: oklch(36.3% 0.192 275.5);
Tailwind
colors: {
  custom: {
    50: '#785ebd',
    500: '#2c1f9f',
    950: '#000000',
  },
}
SCSS
$custom: #2c1f9f;
$custom-light: #785ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1f9f",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 246.094,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36276,
    "c": 0.19188,
    "h": 275.5
  },
  "luminance": 0.04019
}

Semantic roles & 50–950 ramp

primary
#2C1F9F
secondary
#B8C357
accent
#EA3ED9
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2C1F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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