#2B2197#2B2197

#2B2197 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.181 H 275.8°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#2B2197
RGBrgb(43, 33, 151)
HSLhsl(245, 64%, 36%)
HSVhsv(245, 78%, 59%)
CMYKcmyk(71.5%, 78.1%, 0%, 40.8%)
CIE-LABlab(23.12, 42.20, -62.17)
CIE-LCHlch(23.12, 75.14, 304.17°)
OKLaboklab(35.57% 0.0182 -0.1797)
OKLCHoklch(35.57% 0.181 275.8)
XYZxyz(7.1242, 3.8350, 29.6369)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2197 #8D9721
analogous
#215297 #2B2197 #662197
triadic
#2B2197 #972B21 #21972B
tetradic
#2B2197 #972152 #8D9721 #219766
square
#2B2197 #972152 #8D9721 #219766
split-complementary
#2B2197 #976621 #529721
monochromatic
#0E0B33 #1D1665 #2B2197 #392CC9 #6358DA

Accessibility & contrast

On white

11.88
#2B2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2B2197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2197
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2197#FFFFFF#000000##FFFFFF
##2B21971.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2b2197;
/* rgb */ color: rgb(43, 33, 151);
/* oklch */ color: oklch(35.6% 0.181 275.8);
Tailwind
colors: {
  custom: {
    50: '#765fb7',
    500: '#2b2197',
    950: '#000000',
  },
}
SCSS
$custom: #2b2197;
$custom-light: #765fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2197",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 245.085,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35565,
    "c": 0.18065,
    "h": 275.8
  },
  "luminance": 0.03836
}

Semantic roles & 50–950 ramp

primary
#2B2197
secondary
#B6BE55
accent
#E741D9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2B2197

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

Preview Lab → · Contrast checker → · Palette generator →

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