#2B1895#2B1895

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

Color values

HEX#2B1895
RGBrgb(43, 24, 149)
HSLhsl(249, 72%, 34%)
HSVhsv(249, 84%, 58%)
CMYKcmyk(71.1%, 83.9%, 0%, 41.6%)
CIE-LABlab(21.34, 46.05, -63.87)
CIE-LCHlch(21.34, 78.75, 305.79°)
OKLaboklab(34.26% 0.0228 -0.1846)
OKLCHoklch(34.26% 0.186 277)
XYZxyz(6.7459, 3.3362, 28.7164)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1895 #829518
analogous
#184495 #2B1895 #6A1895
triadic
#2B1895 #952B18 #18952B
tetradic
#2B1895 #951844 #829518 #18956A
square
#2B1895 #951844 #829518 #18956A
split-complementary
#2B1895 #956A18 #449518
monochromatic
#0D072C #1C1060 #2B1895 #3A20CA #5E46E1

Accessibility & contrast

On white

12.59
#2B1895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1895
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1895#FFFFFF#000000##FFFFFF
##2B18951.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003898
Deuteranopia (green-blind)
#002E93
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2b1895;
/* rgb */ color: rgb(43, 24, 149);
/* oklch */ color: oklch(34.3% 0.186 277.0);
Tailwind
colors: {
  custom: {
    50: '#765ab5',
    500: '#2b1895',
    950: '#000000',
  },
}
SCSS
$custom: #2b1895;
$custom-light: #765ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1895",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 249.12,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34262,
    "c": 0.18596,
    "h": 277
  },
  "luminance": 0.03337
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B1895

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

Preview Lab → · Contrast checker → · Palette generator →

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