#2C1F8E#2C1F8E

#2C1F8E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.171 H 277.7°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#2C1F8E
RGBrgb(44, 31, 142)
HSLhsl(247, 64%, 34%)
HSVhsv(247, 78%, 56%)
CMYKcmyk(69%, 78.2%, 0%, 44.3%)
CIE-LABlab(21.83, 40.47, -58.73)
CIE-LCHlch(21.83, 71.32, 304.57°)
OKLaboklab(34.39% 0.0229 -0.1697)
OKLCHoklch(34.39% 0.171 277.7)
XYZxyz(6.4096, 3.4679, 25.9175)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1F8E #818E1F
analogous
#1F4A8E #2C1F8E #641F8E
triadic
#2C1F8E #8E2C1F #1F8E2C
tetradic
#2C1F8E #8E1F4A #818E1F #1F8E64
square
#2C1F8E #8E1F4A #818E1F #1F8E64
split-complementary
#2C1F8E #8E641F #4A8E1F
monochromatic
#0D092A #1C145C #2C1F8E #3C2AC0 #5F4FD9

Accessibility & contrast

On white

12.40
#2C1F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2C1F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1F8E
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1F8E#FFFFFF#000000##FFFFFF
##2C1F8E1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2c1f8e;
/* rgb */ color: rgb(44, 31, 142);
/* oklch */ color: oklch(34.4% 0.171 277.7);
Tailwind
colors: {
  custom: {
    50: '#745db0',
    500: '#2c1f8e',
    950: '#000000',
  },
}
SCSS
$custom: #2c1f8e;
$custom-light: #745db0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1f8e",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 247.027,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34385,
    "c": 0.17121,
    "h": 277.7
  },
  "luminance": 0.03468
}

Semantic roles & 50–950 ramp

primary
#2C1F8E
secondary
#AFBB4D
accent
#E741D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2C1F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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