#2B2882#2B2882

#2B2882 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.146 H 277.0°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#2B2882
RGBrgb(43, 40, 130)
HSLhsl(242, 53%, 33%)
HSVhsv(242, 69%, 51%)
CMYKcmyk(66.9%, 69.2%, 0%, 49%)
CIE-LABlab(22.45, 30.91, -50.19)
CIE-LCHlch(22.45, 58.95, 301.63°)
OKLaboklab(34.44% 0.0177 -0.1448)
OKLCHoklch(34.44% 0.146 277)
XYZxyz(5.7830, 3.6424, 21.5131)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2882 #7F8228
analogous
#285282 #2B2882 #582882
triadic
#2B2882 #822B28 #28822B
tetradic
#2B2882 #822852 #7F8228 #288258
square
#2B2882 #822852 #7F8228 #288258
split-complementary
#2B2882 #825828 #528228
monochromatic
#0C0B24 #1C1A53 #2B2882 #3A36B1 #5C59CC

Accessibility & contrast

On white

12.15
#2B2882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2B2882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2882
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2882#FFFFFF#000000##FFFFFF
##2B28821.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003280
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2b2882;
/* rgb */ color: rgb(43, 40, 130);
/* oklch */ color: oklch(34.4% 0.146 277.0);
Tailwind
colors: {
  custom: {
    50: '#7062a7',
    500: '#2b2882',
    950: '#000000',
  },
}
SCSS
$custom: #2b2882;
$custom-light: #7062a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2882",
  "rgb": {
    "r": 43,
    "g": 40,
    "b": 130
  },
  "hsl": {
    "h": 242,
    "s": 52.941,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34441,
    "c": 0.14588,
    "h": 277
  },
  "luminance": 0.03643
}

Semantic roles & 50–950 ramp

primary
#2B2882
secondary
#AEB155
accent
#DC4BD8
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #2B2882

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

Preview Lab → · Contrast checker → · Palette generator →

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