#2C1B98#2C1B98

#2C1B98 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.0% C 0.187 H 276.8°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#2C1B98
RGBrgb(44, 27, 152)
HSLhsl(248, 70%, 35%)
HSVhsv(248, 82%, 60%)
CMYKcmyk(71.1%, 82.2%, 0%, 40.4%)
CIE-LABlab(22.25, 45.66, -64.22)
CIE-LCHlch(22.25, 78.80, 305.42°)
OKLaboklab(35.01% 0.0221 -0.1856)
OKLCHoklch(35.01% 0.187 276.8)
XYZxyz(7.0963, 3.5857, 30.0178)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B98 #87981B
analogous
#1B4998 #2C1B98 #6A1B98
triadic
#2C1B98 #982C1B #1B982C
tetradic
#2C1B98 #981B49 #87981B #1B986A
square
#2C1B98 #981B49 #87981B #1B986A
split-complementary
#2C1B98 #986A1B #49981B
monochromatic
#0E0930 #1D1264 #2C1B98 #3B24CC #624EE0

Accessibility & contrast

On white

12.23
#2C1B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2C1B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1B98
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B98#FFFFFF#000000##FFFFFF
##2C1B981.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9B
Deuteranopia (green-blind)
#003096
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c1b98;
/* rgb */ color: rgb(44, 27, 152);
/* oklch */ color: oklch(35.0% 0.187 276.8);
Tailwind
colors: {
  custom: {
    50: '#775cb8',
    500: '#2c1b98',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b98;
$custom-light: #775cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b98",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 152
  },
  "hsl": {
    "h": 248.16,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35013,
    "c": 0.18689,
    "h": 276.8
  },
  "luminance": 0.03586
}

Semantic roles & 50–950 ramp

primary
#2C1B98
secondary
#B2C24D
accent
#ED3BD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1B98

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

Preview Lab → · Contrast checker → · Palette generator →

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