#2B2179#2B2179

#2B2179 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.142 H 280.0°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#2B2179
RGBrgb(43, 33, 121)
HSLhsl(247, 57%, 30%)
HSVhsv(247, 73%, 47%)
CMYKcmyk(64.5%, 72.7%, 0%, 52.5%)
CIE-LABlab(19.97, 32.18, -48.55)
CIE-LCHlch(19.97, 58.25, 303.54°)
OKLaboklab(32.39% 0.0248 -0.14)
OKLCHoklch(32.39% 0.142 280)
XYZxyz(4.9902, 2.9814, 18.3980)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2179 #6F7921
analogous
#214379 #2B2179 #572179
triadic
#2B2179 #792B21 #21792B
tetradic
#2B2179 #792143 #6F7921 #217957
square
#2B2179 #792143 #6F7921 #217957
split-complementary
#2B2179 #795721 #437921
monochromatic
#090719 #1A1449 #2B2179 #3C2EA9 #5747CD

Accessibility & contrast

On white

13.15
#2B2179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2B2179 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2179
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2179#FFFFFF#000000##FFFFFF
##2B21791.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b2179;
/* rgb */ color: rgb(43, 33, 121);
/* oklch */ color: oklch(32.4% 0.142 280.0);
Tailwind
colors: {
  custom: {
    50: '#6f5da1',
    500: '#2b2179',
    950: '#000000',
  },
}
SCSS
$custom: #2b2179;
$custom-light: #6f5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2179",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 121
  },
  "hsl": {
    "h": 246.818,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32388,
    "c": 0.14217,
    "h": 280
  },
  "luminance": 0.02982
}

Semantic roles & 50–950 ramp

primary
#2B2179
secondary
#A1AC4A
accent
#E047CF
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B2179

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

Preview Lab → · Contrast checker → · Palette generator →

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