#2B1894#2B1894

#2B1894 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.1% C 0.185 H 277.2°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#2B1894
RGBrgb(43, 24, 148)
HSLhsl(249, 72%, 34%)
HSVhsv(249, 84%, 58%)
CMYKcmyk(70.9%, 83.8%, 0%, 42%)
CIE-LABlab(21.22, 45.75, -63.45)
CIE-LCHlch(21.22, 78.23, 305.79°)
OKLaboklab(34.14% 0.0231 -0.1833)
OKLCHoklch(34.14% 0.185 277.2)
XYZxyz(6.6665, 3.3044, 28.2977)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1894 #819418
analogous
#184394 #2B1894 #691894
triadic
#2B1894 #942B18 #18942B
tetradic
#2B1894 #941843 #819418 #189469
square
#2B1894 #941843 #819418 #189469
split-complementary
#2B1894 #946918 #439418
monochromatic
#0C072B #1C0F5F #2B1894 #3A21C9 #5D45E1

Accessibility & contrast

On white

12.64
#2B1894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2B1894 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1894
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1894#FFFFFF#000000##FFFFFF
##2B18941.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003897
Deuteranopia (green-blind)
#002E92
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2b1894;
/* rgb */ color: rgb(43, 24, 148);
/* oklch */ color: oklch(34.1% 0.185 277.2);
Tailwind
colors: {
  custom: {
    50: '#765ab5',
    500: '#2b1894',
    950: '#000000',
  },
}
SCSS
$custom: #2b1894;
$custom-light: #765ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1894",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 148
  },
  "hsl": {
    "h": 249.194,
    "s": 72.093,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34145,
    "c": 0.18479,
    "h": 277.2
  },
  "luminance": 0.03305
}

Semantic roles & 50–950 ramp

primary
#2B1894
secondary
#AFC246
accent
#EF39D3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1894

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

Preview Lab → · Contrast checker → · Palette generator →

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