#2B2872#2B2872

#2B2872 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.123 H 279.0°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#2B2872
RGBrgb(43, 40, 114)
HSLhsl(242, 48%, 30%)
HSVhsv(242, 65%, 45%)
CMYKcmyk(62.3%, 64.9%, 0%, 55.3%)
CIE-LABlab(21.00, 25.21, -42.38)
CIE-LCHlch(21.00, 49.31, 300.75°)
OKLaboklab(32.94% 0.0193 -0.1219)
OKLCHoklch(32.94% 0.123 279)
XYZxyz(4.7913, 3.2457, 16.2903)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2872 #6F7228
analogous
#284A72 #2B2872 #502872
triadic
#2B2872 #722B28 #28722B
tetradic
#2B2872 #72284A #6F7228 #287250
square
#2B2872 #72284A #6F7228 #287250
split-complementary
#2B2872 #725028 #4A7228
monochromatic
#090817 #1A1845 #2B2872 #3C389F #5752C2

Accessibility & contrast

On white

12.73
#2B2872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B2872
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2872#FFFFFF#000000##FFFFFF
##2B28721.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#003071
Tritanopia (blue-blind)
#003A49
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b2872;
/* rgb */ color: rgb(43, 40, 114);
/* oklch */ color: oklch(32.9% 0.123 279.0);
Tailwind
colors: {
  custom: {
    50: '#6d629b',
    500: '#2b2872',
    950: '#000000',
  },
}
SCSS
$custom: #2b2872;
$custom-light: #6d629b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2872",
  "rgb": {
    "r": 43,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 242.432,
    "s": 48.052,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32937,
    "c": 0.1234,
    "h": 279
  },
  "luminance": 0.03246
}

Semantic roles & 50–950 ramp

primary
#2B2872
secondary
#A1A452
accent
#D850D2
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #2B2872

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

Preview Lab → · Contrast checker → · Palette generator →

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