#2B1790#2B1790

#2B1790 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.6% C 0.181 H 277.9°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#2B1790
RGBrgb(43, 23, 144)
HSLhsl(250, 72%, 33%)
HSVhsv(250, 84%, 56%)
CMYKcmyk(70.1%, 84%, 0%, 43.5%)
CIE-LABlab(20.59, 44.99, -62.02)
CIE-LCHlch(20.59, 76.62, 305.96°)
OKLaboklab(33.57% 0.0248 -0.1791)
OKLCHoklch(33.57% 0.181 277.9)
XYZxyz(6.3351, 3.1394, 26.6523)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1790 #7C9017
analogous
#174090 #2B1790 #671790
triadic
#2B1790 #902B17 #17902B
tetradic
#2B1790 #901740 #7C9017 #179067
square
#2B1790 #901740 #7C9017 #179067
split-complementary
#2B1790 #906717 #409017
monochromatic
#0B0626 #1B0F5B #2B1790 #3B1FC5 #5B41E1

Accessibility & contrast

On white

12.90
#2B1790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2B1790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1790
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1790#FFFFFF#000000##FFFFFF
##2B17901.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003693
Deuteranopia (green-blind)
#002D8E
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b1790;
/* rgb */ color: rgb(43, 23, 144);
/* oklch */ color: oklch(33.6% 0.181 277.9);
Tailwind
colors: {
  custom: {
    50: '#7559b2',
    500: '#2b1790',
    950: '#000000',
  },
}
SCSS
$custom: #2b1790;
$custom-light: #7559b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1790",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 249.917,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33573,
    "c": 0.18085,
    "h": 277.9
  },
  "luminance": 0.0314
}

Semantic roles & 50–950 ramp

primary
#2B1790
secondary
#ACC142
accent
#EF39D1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1790

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

Preview Lab → · Contrast checker → · Palette generator →

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