#2B2187#2B2187

#2B2187 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.161 H 277.8°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#2B2187
RGBrgb(43, 33, 135)
HSLhsl(246, 61%, 33%)
HSVhsv(246, 76%, 53%)
CMYKcmyk(68.1%, 75.6%, 0%, 47.1%)
CIE-LABlab(21.39, 36.92, -55.07)
CIE-LCHlch(21.39, 66.30, 303.84°)
OKLaboklab(33.84% 0.0219 -0.159)
OKLCHoklch(33.84% 0.161 277.8)
XYZxyz(5.9119, 3.3501, 23.2521)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2187 #7D8721
analogous
#214A87 #2B2187 #5E2187
triadic
#2B2187 #872B21 #21872B
tetradic
#2B2187 #87214A #7D8721 #21875E
square
#2B2187 #87214A #7D8721 #21875E
split-complementary
#2B2187 #875E21 #4A8721
monochromatic
#0C0925 #1B1556 #2B2187 #3B2DB8 #5C4FD4

Accessibility & contrast

On white

12.57
#2B2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2B2187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2187
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2187#FFFFFF#000000##FFFFFF
##2B21871.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2b2187;
/* rgb */ color: rgb(43, 33, 135);
/* oklch */ color: oklch(33.8% 0.161 277.8);
Tailwind
colors: {
  custom: {
    50: '#725eab',
    500: '#2b2187',
    950: '#000000',
  },
}
SCSS
$custom: #2b2187;
$custom-light: #725eab;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2187",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 245.882,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33835,
    "c": 0.16055,
    "h": 277.8
  },
  "luminance": 0.03351
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B2187

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

Preview Lab → · Contrast checker → · Palette generator →

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