#2B2172#2B2172

#2B2172 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.133 H 281.3°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#2B2172
RGBrgb(43, 33, 114)
HSLhsl(247, 55%, 29%)
HSVhsv(247, 71%, 45%)
CMYKcmyk(62.3%, 71.1%, 0%, 55.3%)
CIE-LABlab(19.29, 29.78, -45.17)
CIE-LCHlch(19.29, 54.11, 303.40°)
OKLaboklab(31.69% 0.026 -0.1301)
OKLCHoklch(31.69% 0.133 281.3)
XYZxyz(4.5764, 2.8159, 16.2187)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2172 #687221
analogous
#214072 #2B2172 #542172
triadic
#2B2172 #722B21 #21722B
tetradic
#2B2172 #722140 #687221 #217254
square
#2B2172 #722140 #687221 #217254
split-complementary
#2B2172 #725421 #407221
monochromatic
#090718 #191343 #2B2172 #3D2FA1 #5544C9

Accessibility & contrast

On white

13.43
#2B2172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2B2172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2172
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2172#FFFFFF#000000##FFFFFF
##2B21721.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#003646
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b2172;
/* rgb */ color: rgb(43, 33, 114);
/* oklch */ color: oklch(31.7% 0.133 281.3);
Tailwind
colors: {
  custom: {
    50: '#6d5d9b',
    500: '#2b2172',
    950: '#000000',
  },
}
SCSS
$custom: #2b2172;
$custom-light: #6d5d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2172",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 247.407,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31694,
    "c": 0.13267,
    "h": 281.3
  },
  "luminance": 0.02816
}

Semantic roles & 50–950 ramp

primary
#2B2172
secondary
#9AA549
accent
#DE49CC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2B2172

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

Preview Lab → · Contrast checker → · Palette generator →

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