#2B2873#2B2873

#2B2873 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.0% C 0.125 H 278.9°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#2B2873
RGBrgb(43, 40, 115)
HSLhsl(242, 48%, 30%)
HSVhsv(242, 65%, 45%)
CMYKcmyk(62.6%, 65.2%, 0%, 54.9%)
CIE-LABlab(21.09, 25.57, -42.88)
CIE-LCHlch(21.09, 49.92, 300.81°)
OKLaboklab(33.03% 0.0192 -0.1233)
OKLCHoklch(33.03% 0.125 278.9)
XYZxyz(4.8486, 3.2686, 16.5917)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2873 #707328
analogous
#284A73 #2B2873 #502873
triadic
#2B2873 #732B28 #28732B
tetradic
#2B2873 #73284A #707328 #287350
square
#2B2873 #73284A #707328 #287350
split-complementary
#2B2873 #735028 #4A7328
monochromatic
#090818 #1A1846 #2B2873 #3C38A0 #5752C3

Accessibility & contrast

On white

12.70
#2B2873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B2873
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2873#FFFFFF#000000##FFFFFF
##2B28731.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003675
Deuteranopia (green-blind)
#003072
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2b2873;
/* rgb */ color: rgb(43, 40, 115);
/* oklch */ color: oklch(33.0% 0.125 278.9);
Tailwind
colors: {
  custom: {
    50: '#6d629c',
    500: '#2b2873',
    950: '#000000',
  },
}
SCSS
$custom: #2b2873;
$custom-light: #6d629c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2873",
  "rgb": {
    "r": 43,
    "g": 40,
    "b": 115
  },
  "hsl": {
    "h": 242.4,
    "s": 48.387,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33028,
    "c": 0.12484,
    "h": 278.9
  },
  "luminance": 0.03269
}

Semantic roles & 50–950 ramp

primary
#2B2873
secondary
#A2A552
accent
#D850D3
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2B2873

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

Preview Lab → · Contrast checker → · Palette generator →

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