#2B2173#2B2173

#2B2173 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.134 H 281.1°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#2B2173
RGBrgb(43, 33, 115)
HSLhsl(247, 55%, 29%)
HSVhsv(247, 71%, 45%)
CMYKcmyk(62.6%, 71.3%, 0%, 54.9%)
CIE-LABlab(19.39, 30.13, -45.66)
CIE-LCHlch(19.39, 54.70, 303.42°)
OKLaboklab(31.79% 0.0258 -0.1315)
OKLCHoklch(31.79% 0.134 281.1)
XYZxyz(4.6337, 2.8388, 16.5201)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2173 #697321
analogous
#214073 #2B2173 #542173
triadic
#2B2173 #732B21 #21732B
tetradic
#2B2173 #732140 #697321 #217354
square
#2B2173 #732140 #697321 #217354
split-complementary
#2B2173 #735421 #407321
monochromatic
#090718 #191343 #2B2173 #3D2FA3 #5545CA

Accessibility & contrast

On white

13.39
#2B2173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2B2173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2173
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2173#FFFFFF#000000##FFFFFF
##2B21731.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003276
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b2173;
/* rgb */ color: rgb(43, 33, 115);
/* oklch */ color: oklch(31.8% 0.134 281.1);
Tailwind
colors: {
  custom: {
    50: '#6e5d9c',
    500: '#2b2173',
    950: '#000000',
  },
}
SCSS
$custom: #2b2173;
$custom-light: #6e5d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2173",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 247.317,
    "s": 55.405,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31792,
    "c": 0.13404,
    "h": 281.1
  },
  "luminance": 0.02839
}

Semantic roles & 50–950 ramp

primary
#2B2173
secondary
#9BA649
accent
#DF49CC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2B2173

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

Preview Lab → · Contrast checker → · Palette generator →

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