#2B2178#2B2178

#2B2178 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.141 H 280.2°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#2B2178
RGBrgb(43, 33, 120)
HSLhsl(247, 57%, 30%)
HSVhsv(247, 73%, 47%)
CMYKcmyk(64.2%, 72.5%, 0%, 52.9%)
CIE-LABlab(19.87, 31.84, -48.08)
CIE-LCHlch(19.87, 57.66, 303.52°)
OKLaboklab(32.29% 0.0249 -0.1386)
OKLCHoklch(32.29% 0.141 280.2)
XYZxyz(4.9292, 2.9570, 18.0767)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2178 #6E7821
analogous
#214278 #2B2178 #572178
triadic
#2B2178 #782B21 #21782B
tetradic
#2B2178 #782142 #6E7821 #217857
square
#2B2178 #782142 #6E7821 #217857
split-complementary
#2B2178 #785721 #427821
monochromatic
#090718 #1A1448 #2B2178 #3C2EA8 #5647CC

Accessibility & contrast

On white

13.20
#2B2178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2B2178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2178
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2178#FFFFFF#000000##FFFFFF
##2B21781.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#002D76
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b2178;
/* rgb */ color: rgb(43, 33, 120);
/* oklch */ color: oklch(32.3% 0.141 280.2);
Tailwind
colors: {
  custom: {
    50: '#6f5da0',
    500: '#2b2178',
    950: '#000000',
  },
}
SCSS
$custom: #2b2178;
$custom-light: #6f5da0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2178",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 246.897,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.32288,
    "c": 0.14083,
    "h": 280.2
  },
  "luminance": 0.02957
}

Semantic roles & 50–950 ramp

primary
#2B2178
secondary
#A0AB4A
accent
#E048CF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2B2178

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

Preview Lab → · Contrast checker → · Palette generator →

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