#2B2572#2B2572

#2B2572 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.4% C 0.127 H 280.0°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#2B2572
RGBrgb(43, 37, 114)
HSLhsl(245, 51%, 30%)
HSVhsv(245, 68%, 45%)
CMYKcmyk(62.3%, 67.5%, 0%, 55.3%)
CIE-LABlab(20.25, 27.20, -43.61)
CIE-LCHlch(20.25, 51.40, 301.96°)
OKLaboklab(32.39% 0.0222 -0.1255)
OKLCHoklch(32.39% 0.127 280)
XYZxyz(4.6941, 3.0513, 16.2579)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2572 #6C7225
analogous
#254672 #2B2572 #512572
triadic
#2B2572 #722B25 #25722B
tetradic
#2B2572 #722546 #6C7225 #257251
square
#2B2572 #722546 #6C7225 #257251
split-complementary
#2B2572 #725125 #467225
monochromatic
#090717 #1A1644 #2B2572 #3C34A0 #564CC5

Accessibility & contrast

On white

13.04
#2B2572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2B2572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2572
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2572#FFFFFF#000000##FFFFFF
##2B25721.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#003848
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2b2572;
/* rgb */ color: rgb(43, 37, 114);
/* oklch */ color: oklch(32.4% 0.127 280.0);
Tailwind
colors: {
  custom: {
    50: '#6d609b',
    500: '#2b2572',
    950: '#000000',
  },
}
SCSS
$custom: #2b2572;
$custom-light: #6d609b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2572",
  "rgb": {
    "r": 43,
    "g": 37,
    "b": 114
  },
  "hsl": {
    "h": 244.675,
    "s": 50.993,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32386,
    "c": 0.12745,
    "h": 280
  },
  "luminance": 0.03052
}

Semantic roles & 50–950 ramp

primary
#2B2572
secondary
#9EA54E
accent
#DA4DCF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2B2572

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

Preview Lab → · Contrast checker → · Palette generator →

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