#2B1C98#2B1C98

#2B1C98 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.1% C 0.186 H 276.2°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#2B1C98
RGBrgb(43, 28, 152)
HSLhsl(247, 69%, 35%)
HSVhsv(247, 82%, 60%)
CMYKcmyk(71.7%, 81.6%, 0%, 40.4%)
CIE-LABlab(22.34, 45.10, -64.07)
CIE-LCHlch(22.34, 78.35, 305.14°)
OKLaboklab(35.05% 0.0203 -0.1852)
OKLCHoklch(35.05% 0.186 276.2)
XYZxyz(7.0772, 3.6104, 30.0236)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1C98 #89981C
analogous
#1C4B98 #2B1C98 #691C98
triadic
#2B1C98 #982B1C #1C982B
tetradic
#2B1C98 #981C4B #89981C #1C9869
square
#2B1C98 #981C4B #89981C #1C9869
split-complementary
#2B1C98 #98691C #4B981C
monochromatic
#0E0931 #1C1264 #2B1C98 #3A26CC #6150DF

Accessibility & contrast

On white

12.19
#2B1C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1C98
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1C98#FFFFFF#000000##FFFFFF
##2B1C981.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1c98;
/* rgb */ color: rgb(43, 28, 152);
/* oklch */ color: oklch(35.1% 0.186 276.2);
Tailwind
colors: {
  custom: {
    50: '#765cb8',
    500: '#2b1c98',
    950: '#000000',
  },
}
SCSS
$custom: #2b1c98;
$custom-light: #765cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1c98",
  "rgb": {
    "r": 43,
    "g": 28,
    "b": 152
  },
  "hsl": {
    "h": 247.258,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35054,
    "c": 0.1863,
    "h": 276.2
  },
  "luminance": 0.03611
}

Semantic roles & 50–950 ramp

primary
#2B1C98
secondary
#B3C14E
accent
#EC3CD6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1C98

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

Preview Lab → · Contrast checker → · Palette generator →

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