#2C1C8F#2C1C8F

#2C1C8F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.1% C 0.175 H 278.0°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#2C1C8F
RGBrgb(44, 28, 143)
HSLhsl(248, 67%, 34%)
HSVhsv(248, 80%, 56%)
CMYKcmyk(69.2%, 80.4%, 0%, 43.9%)
CIE-LABlab(21.39, 42.36, -60.08)
CIE-LCHlch(21.39, 73.51, 305.19°)
OKLaboklab(34.11% 0.0242 -0.1736)
OKLCHoklch(34.11% 0.175 278)
XYZxyz(6.4103, 3.3486, 26.2898)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1C8F #7F8F1C
analogous
#1C458F #2C1C8F #651C8F
triadic
#2C1C8F #8F2C1C #1C8F2C
tetradic
#2C1C8F #8F1C45 #7F8F1C #1C8F65
square
#2C1C8F #8F1C45 #7F8F1C #1C8F65
split-complementary
#2C1C8F #8F651C #458F1C
monochromatic
#0D0829 #1C125C #2C1C8F #3C26C2 #5E4ADC

Accessibility & contrast

On white

12.58
#2C1C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2C1C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1C8F
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1C8F#FFFFFF#000000##FFFFFF
##2C1C8F1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2c1c8f;
/* rgb */ color: rgb(44, 28, 143);
/* oklch */ color: oklch(34.1% 0.175 278.0);
Tailwind
colors: {
  custom: {
    50: '#755cb1',
    500: '#2c1c8f',
    950: '#000000',
  },
}
SCSS
$custom: #2c1c8f;
$custom-light: #755cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1c8f",
  "rgb": {
    "r": 44,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 248.348,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34111,
    "c": 0.17524,
    "h": 278
  },
  "luminance": 0.03349
}

Semantic roles & 50–950 ramp

primary
#2C1C8F
secondary
#ADBE49
accent
#EA3ED2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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