#2B2480#2B2480

#2B2480 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.148 H 278.2°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#2B2480
RGBrgb(43, 36, 128)
HSLhsl(245, 56%, 32%)
HSVhsv(245, 72%, 50%)
CMYKcmyk(66.4%, 71.9%, 0%, 49.8%)
CIE-LABlab(21.33, 32.74, -50.76)
CIE-LCHlch(21.33, 60.41, 302.82°)
OKLaboklab(33.58% 0.0212 -0.1465)
OKLCHoklch(33.58% 0.148 278.2)
XYZxyz(5.5222, 3.3334, 20.7703)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2480 #798024
analogous
#244B80 #2B2480 #592480
triadic
#2B2480 #802B24 #24802B
tetradic
#2B2480 #80244B #798024 #248059
square
#2B2480 #80244B #798024 #248059
split-complementary
#2B2480 #805924 #4B8024
monochromatic
#0B0920 #1B1750 #2B2480 #3B31B0 #5A50CE

Accessibility & contrast

On white

12.60
#2B2480 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2B2480 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2480
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2480#FFFFFF#000000##FFFFFF
##2B24801.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003783
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2b2480;
/* rgb */ color: rgb(43, 36, 128);
/* oklch */ color: oklch(33.6% 0.148 278.2);
Tailwind
colors: {
  custom: {
    50: '#7060a6',
    500: '#2b2480',
    950: '#000000',
  },
}
SCSS
$custom: #2b2480;
$custom-light: #7060a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2480",
  "rgb": {
    "r": 43,
    "g": 36,
    "b": 128
  },
  "hsl": {
    "h": 244.565,
    "s": 56.098,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33576,
    "c": 0.148,
    "h": 278.2
  },
  "luminance": 0.03334
}

Semantic roles & 50–950 ramp

primary
#2B2480
secondary
#AAB24E
accent
#DF48D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2B2480

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

Preview Lab → · Contrast checker → · Palette generator →

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