#2B2A71#2B2A71

#2B2A71 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.2% C 0.119 H 278.3°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#2B2A71
RGBrgb(43, 42, 113)
HSLhsl(241, 46%, 30%)
HSVhsv(241, 63%, 44%)
CMYKcmyk(61.9%, 62.8%, 0%, 55.7%)
CIE-LABlab(21.44, 23.50, -41.03)
CIE-LCHlch(21.44, 47.28, 299.80°)
OKLaboklab(33.23% 0.0173 -0.1179)
OKLCHoklch(33.23% 0.119 278.3)
XYZxyz(4.8039, 3.3614, 16.0153)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2A71 #70712A
analogous
#2A4C71 #2B2A71 #4E2A71
triadic
#2B2A71 #712B2A #2A712B
tetradic
#2B2A71 #712A4C #70712A #2A714E
square
#2B2A71 #712A4C #70712A #2A714E
split-complementary
#2B2A71 #714E2A #4C712A
monochromatic
#090918 #1A1944 #2B2A71 #3C3B9E #5755C0

Accessibility & contrast

On white

12.56
#2B2A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2B2A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2A71
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2A71#FFFFFF#000000##FFFFFF
##2B2A711.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b2a71;
/* rgb */ color: rgb(43, 42, 113);
/* oklch */ color: oklch(33.2% 0.119 278.3);
Tailwind
colors: {
  custom: {
    50: '#6c639a',
    500: '#2b2a71',
    950: '#000000',
  },
}
SCSS
$custom: #2b2a71;
$custom-light: #6c639a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2a71",
  "rgb": {
    "r": 43,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 240.845,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3323,
    "c": 0.11916,
    "h": 278.3
  },
  "luminance": 0.03362
}

Semantic roles & 50–950 ramp

primary
#2B2A71
secondary
#A2A354
accent
#D552D4
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #2B2A71

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

Preview Lab → · Contrast checker → · Palette generator →

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