#2B2971#2B2971

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

Color values

HEX#2B2971
RGBrgb(43, 41, 113)
HSLhsl(242, 47%, 30%)
HSVhsv(242, 64%, 44%)
CMYKcmyk(61.9%, 63.7%, 0%, 55.7%)
CIE-LABlab(21.18, 24.18, -41.45)
CIE-LCHlch(21.18, 47.99, 300.25°)
OKLaboklab(33.04% 0.0183 -0.1191)
OKLCHoklch(33.04% 0.121 278.7)
XYZxyz(4.7689, 3.2914, 16.0036)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2971 #6F7129
analogous
#294B71 #2B2971 #4F2971
triadic
#2B2971 #712B29 #29712B
tetradic
#2B2971 #71294B #6F7129 #29714F
square
#2B2971 #71294B #6F7129 #29714F
split-complementary
#2B2971 #714F29 #4B7129
monochromatic
#090817 #1A1944 #2B2971 #3C399E #5754C1

Accessibility & contrast

On white

12.66
#2B2971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2B2971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2971
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2971#FFFFFF#000000##FFFFFF
##2B29711.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b2971;
/* rgb */ color: rgb(43, 41, 113);
/* oklch */ color: oklch(33.0% 0.121 278.7);
Tailwind
colors: {
  custom: {
    50: '#6c639a',
    500: '#2b2971',
    950: '#000000',
  },
}
SCSS
$custom: #2b2971;
$custom-light: #6c639a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2971",
  "rgb": {
    "r": 43,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 241.667,
    "s": 46.753,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33037,
    "c": 0.12055,
    "h": 278.7
  },
  "luminance": 0.03292
}

Semantic roles & 50–950 ramp

primary
#2B2971
secondary
#A1A353
accent
#D651D3
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #2B2971

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

Preview Lab → · Contrast checker → · Palette generator →

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