#2B2884#2B2884

#2B2884 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.149 H 276.7°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#2B2884
RGBrgb(43, 40, 132)
HSLhsl(242, 53%, 34%)
HSVhsv(242, 70%, 52%)
CMYKcmyk(67.4%, 69.7%, 0%, 48.2%)
CIE-LABlab(22.64, 31.62, -51.14)
CIE-LCHlch(22.64, 60.12, 301.73°)
OKLaboklab(34.64% 0.0174 -0.1476)
OKLCHoklch(34.64% 0.149 276.7)
XYZxyz(5.9186, 3.6966, 22.2269)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2884 #818428
analogous
#285384 #2B2884 #592884
triadic
#2B2884 #842B28 #28842B
tetradic
#2B2884 #842853 #818428 #288459
square
#2B2884 #842853 #818428 #288459
split-complementary
#2B2884 #845928 #538428
monochromatic
#0C0C26 #1C1A55 #2B2884 #3A36B3 #5D5ACD

Accessibility & contrast

On white

12.07
#2B2884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2B2884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2884
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2884#FFFFFF#000000##FFFFFF
##2B28841.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A87
Deuteranopia (green-blind)
#003282
Tritanopia (blue-blind)
#004052
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2b2884;
/* rgb */ color: rgb(43, 40, 132);
/* oklch */ color: oklch(34.6% 0.149 276.7);
Tailwind
colors: {
  custom: {
    50: '#7162a9',
    500: '#2b2884',
    950: '#000000',
  },
}
SCSS
$custom: #2b2884;
$custom-light: #7162a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2884",
  "rgb": {
    "r": 43,
    "g": 40,
    "b": 132
  },
  "hsl": {
    "h": 241.957,
    "s": 53.488,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34637,
    "c": 0.1486,
    "h": 276.7
  },
  "luminance": 0.03697
}

Semantic roles & 50–950 ramp

primary
#2B2884
secondary
#AFB256
accent
#DD4BD8
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2B2884

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

Preview Lab → · Contrast checker → · Palette generator →

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