#2B2185#2B2185

#2B2185 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.158 H 278.1°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#2B2185
RGBrgb(43, 33, 133)
HSLhsl(246, 60%, 33%)
HSVhsv(246, 75%, 52%)
CMYKcmyk(67.7%, 75.2%, 0%, 47.8%)
CIE-LABlab(21.19, 36.25, -54.16)
CIE-LCHlch(21.19, 65.17, 303.80°)
OKLaboklab(33.62% 0.0223 -0.1564)
OKLCHoklch(33.62% 0.158 278.1)
XYZxyz(5.7724, 3.2943, 22.5174)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2185 #7B8521
analogous
#214985 #2B2185 #5D2185
triadic
#2B2185 #852B21 #21852B
tetradic
#2B2185 #852149 #7B8521 #21855D
square
#2B2185 #852149 #7B8521 #21855D
split-complementary
#2B2185 #855D21 #498521
monochromatic
#0B0923 #1B1554 #2B2185 #3B2DB6 #5B4DD3

Accessibility & contrast

On white

12.66
#2B2185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B2185
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2185#FFFFFF#000000##FFFFFF
##2B21851.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003788
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2b2185;
/* rgb */ color: rgb(43, 33, 133);
/* oklch */ color: oklch(33.6% 0.158 278.1);
Tailwind
colors: {
  custom: {
    50: '#725eaa',
    500: '#2b2185',
    950: '#000000',
  },
}
SCSS
$custom: #2b2185;
$custom-light: #725eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2185",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 133
  },
  "hsl": {
    "h": 246,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33624,
    "c": 0.15798,
    "h": 278.1
  },
  "luminance": 0.03295
}

Semantic roles & 50–950 ramp

primary
#2B2185
secondary
#ABB64C
accent
#E344D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B2185

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

Preview Lab → · Contrast checker → · Palette generator →

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