#2B2180#2B2180

#2B2180 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.151 H 278.9°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#2B2180
RGBrgb(43, 33, 128)
HSLhsl(246, 59%, 32%)
HSVhsv(246, 74%, 50%)
CMYKcmyk(66.4%, 74.2%, 0%, 49.8%)
CIE-LABlab(20.67, 34.57, -51.85)
CIE-LCHlch(20.67, 62.32, 303.69°)
OKLaboklab(33.1% 0.0234 -0.1496)
OKLCHoklch(33.1% 0.151 278.9)
XYZxyz(5.4352, 3.1594, 20.7413)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2180 #768021
analogous
#214780 #2B2180 #5B2180
triadic
#2B2180 #802B21 #21802B
tetradic
#2B2180 #802147 #768021 #21805B
square
#2B2180 #802147 #768021 #21805B
split-complementary
#2B2180 #805B21 #478021
monochromatic
#0A081F #1B144F #2B2180 #3B2EB1 #594BD1

Accessibility & contrast

On white

12.87
#2B2180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2B2180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2180
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2180#FFFFFF#000000##FFFFFF
##2B21801.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#002E7E
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b2180;
/* rgb */ color: rgb(43, 33, 128);
/* oklch */ color: oklch(33.1% 0.151 278.9);
Tailwind
colors: {
  custom: {
    50: '#705ea6',
    500: '#2b2180',
    950: '#000000',
  },
}
SCSS
$custom: #2b2180;
$custom-light: #705ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2180",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 246.316,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33103,
    "c": 0.15147,
    "h": 278.9
  },
  "luminance": 0.0316
}

Semantic roles & 50–950 ramp

primary
#2B2180
secondary
#A8B34A
accent
#E246D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B2180

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

Preview Lab → · Contrast checker → · Palette generator →

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