#2B2071#2B2071

#2B2071 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.133 H 281.8°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#2B2071
RGBrgb(43, 32, 113)
HSLhsl(248, 56%, 28%)
HSVhsv(248, 72%, 44%)
CMYKcmyk(61.9%, 71.7%, 0%, 55.7%)
CIE-LABlab(18.97, 30.07, -45.06)
CIE-LCHlch(18.97, 54.17, 303.72°)
OKLaboklab(31.43% 0.027 -0.1298)
OKLCHoklch(31.43% 0.133 281.8)
XYZxyz(4.4925, 2.7386, 15.9114)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2071 #667120
analogous
#203D71 #2B2071 #532071
triadic
#2B2071 #712B20 #20712B
tetradic
#2B2071 #71203D #667120 #207153
square
#2B2071 #71203D #667120 #207153
split-complementary
#2B2071 #715320 #3D7120
monochromatic
#090718 #191241 #2B2071 #3D2EA1 #5442C9

Accessibility & contrast

On white

13.57
#2B2071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2B2071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2071
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2071#FFFFFF#000000##FFFFFF
##2B20711.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002B6F
Tritanopia (blue-blind)
#003545
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2b2071;
/* rgb */ color: rgb(43, 32, 113);
/* oklch */ color: oklch(31.4% 0.133 281.8);
Tailwind
colors: {
  custom: {
    50: '#6d5c9b',
    500: '#2b2071',
    950: '#000000',
  },
}
SCSS
$custom: #2b2071;
$custom-light: #6d5c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2071",
  "rgb": {
    "r": 43,
    "g": 32,
    "b": 113
  },
  "hsl": {
    "h": 248.148,
    "s": 55.862,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3143,
    "c": 0.13256,
    "h": 281.8
  },
  "luminance": 0.02739
}

Semantic roles & 50–950 ramp

primary
#2B2071
secondary
#98A548
accent
#DF49CB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2B2071

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

Preview Lab → · Contrast checker → · Palette generator →

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