#2B2672#2B2672

#2B2672 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.126 H 279.7°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#2B2672
RGBrgb(43, 38, 114)
HSLhsl(244, 50%, 30%)
HSVhsv(244, 67%, 45%)
CMYKcmyk(62.3%, 66.7%, 0%, 55.3%)
CIE-LABlab(20.50, 26.54, -43.20)
CIE-LCHlch(20.50, 50.71, 301.57°)
OKLaboklab(32.57% 0.0213 -0.1243)
OKLCHoklch(32.57% 0.126 279.7)
XYZxyz(4.7257, 3.1144, 16.2684)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2672 #6D7226
analogous
#264772 #2B2672 #512672
triadic
#2B2672 #722B26 #26722B
tetradic
#2B2672 #722647 #6D7226 #267251
square
#2B2672 #722647 #6D7226 #267251
split-complementary
#2B2672 #725126 #477226
monochromatic
#090817 #1A1744 #2B2672 #3C35A0 #564EC4

Accessibility & contrast

On white

12.94
#2B2672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2B2672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2672
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2672#FFFFFF#000000##FFFFFF
##2B26721.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b2672;
/* rgb */ color: rgb(43, 38, 114);
/* oklch */ color: oklch(32.6% 0.126 279.7);
Tailwind
colors: {
  custom: {
    50: '#6d619b',
    500: '#2b2672',
    950: '#000000',
  },
}
SCSS
$custom: #2b2672;
$custom-light: #6d619b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2672",
  "rgb": {
    "r": 43,
    "g": 38,
    "b": 114
  },
  "hsl": {
    "h": 243.947,
    "s": 50,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32567,
    "c": 0.12611,
    "h": 279.7
  },
  "luminance": 0.03115
}

Semantic roles & 50–950 ramp

primary
#2B2672
secondary
#9FA54F
accent
#DA4ED0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2B2672

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

Preview Lab → · Contrast checker → · Palette generator →

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