#2B2195#2B2195

#2B2195 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.178 H 276.0°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#2B2195
RGBrgb(43, 33, 149)
HSLhsl(245, 64%, 36%)
HSVhsv(245, 78%, 58%)
CMYKcmyk(71.1%, 77.9%, 0%, 41.6%)
CIE-LABlab(22.90, 41.55, -61.30)
CIE-LCHlch(22.90, 74.06, 304.13°)
OKLaboklab(35.35% 0.0187 -0.1772)
OKLCHoklch(35.35% 0.178 276)
XYZxyz(6.9632, 3.7706, 28.7888)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2195 #8B9521
analogous
#215195 #2B2195 #652195
triadic
#2B2195 #952B21 #21952B
tetradic
#2B2195 #952151 #8B9521 #219565
square
#2B2195 #952151 #8B9521 #219565
split-complementary
#2B2195 #956521 #519521
monochromatic
#0E0B31 #1D1663 #2B2195 #392CC7 #6257DA

Accessibility & contrast

On white

11.97
#2B2195 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2B2195 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2195
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2195#FFFFFF#000000##FFFFFF
##2B21951.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C98
Deuteranopia (green-blind)
#003193
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2b2195;
/* rgb */ color: rgb(43, 33, 149);
/* oklch */ color: oklch(35.3% 0.178 276.0);
Tailwind
colors: {
  custom: {
    50: '#755fb5',
    500: '#2b2195',
    950: '#000000',
  },
}
SCSS
$custom: #2b2195;
$custom-light: #755fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2195",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 149
  },
  "hsl": {
    "h": 245.172,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35345,
    "c": 0.17819,
    "h": 276
  },
  "luminance": 0.03771
}

Semantic roles & 50–950 ramp

primary
#2B2195
secondary
#B5BE54
accent
#E741D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2B2195

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

Preview Lab → · Contrast checker → · Palette generator →

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