#2B1994#2B1994

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

Color values

HEX#2B1994
RGBrgb(43, 25, 148)
HSLhsl(249, 71%, 34%)
HSVhsv(249, 83%, 58%)
CMYKcmyk(70.9%, 83.1%, 0%, 42%)
CIE-LABlab(21.38, 45.29, -63.19)
CIE-LCHlch(21.38, 77.75, 305.63°)
OKLaboklab(34.25% 0.0227 -0.1826)
OKLCHoklch(34.25% 0.184 277.1)
XYZxyz(6.6874, 3.3464, 28.3047)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1994 #829419
analogous
#194594 #2B1994 #691994
triadic
#2B1994 #942B19 #19942B
tetradic
#2B1994 #941945 #829419 #199469
square
#2B1994 #941945 #829419 #199469
split-complementary
#2B1994 #946919 #459419
monochromatic
#0D072B #1C1060 #2B1994 #3A22C8 #5E47E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B1994#FFFFFF#000000##FFFFFF
##2B19941.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)
#003897
Deuteranopia (green-blind)
#002E92
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2b1994;
/* rgb */ color: rgb(43, 25, 148);
/* oklch */ color: oklch(34.3% 0.184 277.1);
Tailwind
colors: {
  custom: {
    50: '#765ab5',
    500: '#2b1994',
    950: '#000000',
  },
}
SCSS
$custom: #2b1994;
$custom-light: #765ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1994",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 148
  },
  "hsl": {
    "h": 248.78,
    "s": 71.098,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34254,
    "c": 0.184,
    "h": 277.1
  },
  "luminance": 0.03347
}

Semantic roles & 50–950 ramp

primary
#2B1994
secondary
#B0C147
accent
#EE3AD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1994

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

Preview Lab → · Contrast checker → · Palette generator →

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