#2B2183#2B2183

#2B2183 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.155 H 278.4°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#2B2183
RGBrgb(43, 33, 131)
HSLhsl(246, 60%, 32%)
HSVhsv(246, 75%, 51%)
CMYKcmyk(67.2%, 74.8%, 0%, 48.6%)
CIE-LABlab(20.98, 35.58, -53.24)
CIE-LCHlch(20.98, 64.03, 303.75°)
OKLaboklab(33.42% 0.0228 -0.1537)
OKLCHoklch(33.42% 0.155 278.4)
XYZxyz(5.6355, 3.2395, 21.7966)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2183 #798321
analogous
#214883 #2B2183 #5C2183
triadic
#2B2183 #832B21 #21832B
tetradic
#2B2183 #832148 #798321 #21835C
square
#2B2183 #832148 #798321 #21835C
split-complementary
#2B2183 #835C21 #488321
monochromatic
#0B0821 #1B1552 #2B2183 #3B2DB4 #5A4CD2

Accessibility & contrast

On white

12.74
#2B2183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2B2183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2183
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2183#FFFFFF#000000##FFFFFF
##2B21831.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003686
Deuteranopia (green-blind)
#002E81
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b2183;
/* rgb */ color: rgb(43, 33, 131);
/* oklch */ color: oklch(33.4% 0.155 278.4);
Tailwind
colors: {
  custom: {
    50: '#715ea8',
    500: '#2b2183',
    950: '#000000',
  },
}
SCSS
$custom: #2b2183;
$custom-light: #715ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2183",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 131
  },
  "hsl": {
    "h": 246.122,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33415,
    "c": 0.15539,
    "h": 278.4
  },
  "luminance": 0.0324
}

Semantic roles & 50–950 ramp

primary
#2B2183
secondary
#AAB54B
accent
#E345D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B2183

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

Preview Lab → · Contrast checker → · Palette generator →

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