#2B2193#2B2193

#2B2193 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.176 H 276.3°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#2B2193
RGBrgb(43, 33, 147)
HSLhsl(245, 63%, 35%)
HSVhsv(245, 78%, 58%)
CMYKcmyk(70.7%, 77.6%, 0%, 42.4%)
CIE-LABlab(22.68, 40.90, -60.43)
CIE-LCHlch(22.68, 72.97, 304.09°)
OKLaboklab(35.13% 0.0192 -0.1747)
OKLCHoklch(35.13% 0.176 276.3)
XYZxyz(6.8049, 3.7073, 27.9551)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2193 #899321
analogous
#215093 #2B2193 #642193
triadic
#2B2193 #932B21 #21932B
tetradic
#2B2193 #932150 #899321 #219364
square
#2B2193 #932150 #899321 #219364
split-complementary
#2B2193 #936421 #509321
monochromatic
#0E0B2F #1C1661 #2B2193 #3A2CC5 #6155D9

Accessibility & contrast

On white

12.06
#2B2193 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2B2193 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2193
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2193#FFFFFF#000000##FFFFFF
##2B21931.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B96
Deuteranopia (green-blind)
#003191
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2b2193;
/* rgb */ color: rgb(43, 33, 147);
/* oklch */ color: oklch(35.1% 0.176 276.3);
Tailwind
colors: {
  custom: {
    50: '#755fb4',
    500: '#2b2193',
    950: '#000000',
  },
}
SCSS
$custom: #2b2193;
$custom-light: #755fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2193",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 147
  },
  "hsl": {
    "h": 245.263,
    "s": 63.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35126,
    "c": 0.17571,
    "h": 276.3
  },
  "luminance": 0.03708
}

Semantic roles & 50–950 ramp

primary
#2B2193
secondary
#B3BD53
accent
#E641D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2B2193

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

Preview Lab → · Contrast checker → · Palette generator →

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