#2B1A98#2B1A98

#2B1A98 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.8% C 0.188 H 276.4°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#2B1A98
RGBrgb(43, 26, 152)
HSLhsl(248, 71%, 35%)
HSVhsv(248, 83%, 60%)
CMYKcmyk(71.7%, 82.9%, 0%, 40.4%)
CIE-LABlab(22.01, 46.05, -64.62)
CIE-LCHlch(22.01, 79.35, 305.48°)
OKLaboklab(34.83% 0.0211 -0.1867)
OKLCHoklch(34.83% 0.188 276.4)
XYZxyz(7.0313, 3.5187, 30.0083)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A98 #87981A
analogous
#1A4898 #2B1A98 #6A1A98
triadic
#2B1A98 #982B1A #1A982B
tetradic
#2B1A98 #981A48 #87981A #1A986A
square
#2B1A98 #981A48 #87981A #1A986A
split-complementary
#2B1A98 #986A1A #48981A
monochromatic
#0D082F #1C1164 #2B1A98 #3A23CC #604CE0

Accessibility & contrast

On white

12.33
#2B1A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2B1A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1A98
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A98#FFFFFF#000000##FFFFFF
##2B1A981.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1a98;
/* rgb */ color: rgb(43, 26, 152);
/* oklch */ color: oklch(34.8% 0.188 276.4);
Tailwind
colors: {
  custom: {
    50: '#775bb8',
    500: '#2b1a98',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a98;
$custom-light: #775bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a98",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 152
  },
  "hsl": {
    "h": 248.095,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34827,
    "c": 0.18794,
    "h": 276.4
  },
  "luminance": 0.03519
}

Semantic roles & 50–950 ramp

primary
#2B1A98
secondary
#B2C24B
accent
#EE3AD5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1A98

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

Preview Lab → · Contrast checker → · Palette generator →

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