#2B2174#2B2174

#2B2174 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.135 H 280.9°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#2B2174
RGBrgb(43, 33, 116)
HSLhsl(247, 56%, 29%)
HSVhsv(247, 72%, 45%)
CMYKcmyk(62.9%, 71.6%, 0%, 54.5%)
CIE-LABlab(19.48, 30.47, -46.15)
CIE-LCHlch(19.48, 55.30, 303.44°)
OKLaboklab(31.89% 0.0256 -0.133)
OKLCHoklch(31.89% 0.135 280.9)
XYZxyz(4.6915, 2.8619, 16.8248)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2174 #6A7421
analogous
#214174 #2B2174 #552174
triadic
#2B2174 #742B21 #21742B
tetradic
#2B2174 #742141 #6A7421 #217455
square
#2B2174 #742141 #6A7421 #217455
split-complementary
#2B2174 #745521 #417421
monochromatic
#090718 #191344 #2B2174 #3D2FA4 #5545CA

Accessibility & contrast

On white

13.36
#2B2174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B2174
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2174#FFFFFF#000000##FFFFFF
##2B21741.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b2174;
/* rgb */ color: rgb(43, 33, 116);
/* oklch */ color: oklch(31.9% 0.135 280.9);
Tailwind
colors: {
  custom: {
    50: '#6e5d9d',
    500: '#2b2174',
    950: '#000000',
  },
}
SCSS
$custom: #2b2174;
$custom-light: #6e5d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2174",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 247.229,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3189,
    "c": 0.13541,
    "h": 280.9
  },
  "luminance": 0.02862
}

Semantic roles & 50–950 ramp

primary
#2B2174
secondary
#9CA749
accent
#DF49CD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2B2174

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

Preview Lab → · Contrast checker → · Palette generator →

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