#2C1F98#2C1F98

#2C1F98 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.183 H 276.4°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#2C1F98
RGBrgb(44, 31, 152)
HSLhsl(246, 66%, 36%)
HSVhsv(246, 80%, 60%)
CMYKcmyk(71.1%, 79.6%, 0%, 40.4%)
CIE-LABlab(22.94, 43.67, -63.08)
CIE-LCHlch(22.94, 76.73, 304.70°)
OKLaboklab(35.49% 0.0203 -0.1823)
OKLCHoklch(35.49% 0.183 276.4)
XYZxyz(7.1943, 3.7818, 30.0505)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1F98 #8B981F
analogous
#1F4E98 #2C1F98 #681F98
triadic
#2C1F98 #982C1F #1F982C
tetradic
#2C1F98 #981F4E #8B981F #1F9868
square
#2C1F98 #981F4E #8B981F #1F9868
split-complementary
#2C1F98 #98681F #4E981F
monochromatic
#0F0A32 #1D1565 #2C1F98 #3B29CB #6455DC

Accessibility & contrast

On white

11.96
#2C1F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2C1F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1F98
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1F98#FFFFFF#000000##FFFFFF
##2C1F981.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003196
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2c1f98;
/* rgb */ color: rgb(44, 31, 152);
/* oklch */ color: oklch(35.5% 0.183 276.4);
Tailwind
colors: {
  custom: {
    50: '#765eb8',
    500: '#2c1f98',
    950: '#000000',
  },
}
SCSS
$custom: #2c1f98;
$custom-light: #765eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1f98",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 246.446,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3549,
    "c": 0.18347,
    "h": 276.4
  },
  "luminance": 0.03782
}

Semantic roles & 50–950 ramp

primary
#2C1F98
secondary
#B4C053
accent
#E93FD7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1F98

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

Preview Lab → · Contrast checker → · Palette generator →

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