#2B2186#2B2186

#2B2186 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.159 H 278.0°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#2B2186
RGBrgb(43, 33, 134)
HSLhsl(246, 60%, 33%)
HSVhsv(246, 75%, 53%)
CMYKcmyk(67.9%, 75.4%, 0%, 47.5%)
CIE-LABlab(21.29, 36.59, -54.62)
CIE-LCHlch(21.29, 65.74, 303.82°)
OKLaboklab(33.73% 0.0221 -0.1577)
OKLCHoklch(33.73% 0.159 278)
XYZxyz(5.8418, 3.3220, 22.8830)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2186 #7C8621
analogous
#214986 #2B2186 #5E2186
triadic
#2B2186 #862B21 #21862B
tetradic
#2B2186 #862149 #7C8621 #21865E
square
#2B2186 #862149 #7C8621 #21865E
split-complementary
#2B2186 #865E21 #498621
monochromatic
#0B0924 #1B1555 #2B2186 #3B2DB7 #5B4ED3

Accessibility & contrast

On white

12.62
#2B2186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2B2186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2186
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2186#FFFFFF#000000##FFFFFF
##2B21861.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#003E51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2b2186;
/* rgb */ color: rgb(43, 33, 134);
/* oklch */ color: oklch(33.7% 0.159 278.0);
Tailwind
colors: {
  custom: {
    50: '#725eaa',
    500: '#2b2186',
    950: '#000000',
  },
}
SCSS
$custom: #2b2186;
$custom-light: #725eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2186",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 245.941,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3373,
    "c": 0.15926,
    "h": 278
  },
  "luminance": 0.03323
}

Semantic roles & 50–950 ramp

primary
#2B2186
secondary
#ACB74C
accent
#E444D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B2186

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

Preview Lab → · Contrast checker → · Palette generator →

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