#2B2097#2B2097

#2B2097 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.182 H 275.9°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#2B2097
RGBrgb(43, 32, 151)
HSLhsl(246, 65%, 36%)
HSVhsv(246, 79%, 59%)
CMYKcmyk(71.5%, 78.8%, 0%, 40.8%)
CIE-LABlab(22.93, 42.74, -62.48)
CIE-LCHlch(22.93, 75.70, 304.37°)
OKLaboklab(35.43% 0.0187 -0.1806)
OKLCHoklch(35.43% 0.182 275.9)
XYZxyz(7.0969, 3.7803, 29.6278)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2097 #8C9720
analogous
#205097 #2B2097 #662097
triadic
#2B2097 #972B20 #20972B
tetradic
#2B2097 #972050 #8C9720 #209766
square
#2B2097 #972050 #8C9720 #209766
split-complementary
#2B2097 #976620 #509720
monochromatic
#0E0B32 #1D1564 #2B2097 #392BC9 #6256DB

Accessibility & contrast

On white

11.96
#2B2097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2B2097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2097
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2097#FFFFFF#000000##FFFFFF
##2B20971.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b2097;
/* rgb */ color: rgb(43, 32, 151);
/* oklch */ color: oklch(35.4% 0.182 275.9);
Tailwind
colors: {
  custom: {
    50: '#765eb7',
    500: '#2b2097',
    950: '#000000',
  },
}
SCSS
$custom: #2b2097;
$custom-light: #765eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2097",
  "rgb": {
    "r": 43,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 245.546,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35434,
    "c": 0.18159,
    "h": 275.9
  },
  "luminance": 0.03781
}

Semantic roles & 50–950 ramp

primary
#2B2097
secondary
#B5BF54
accent
#E840D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2B2097

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

Preview Lab → · Contrast checker → · Palette generator →

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