#2B2B84#2B2B84

#2B2B84 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.145 H 276.0°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#2B2B84
RGBrgb(43, 43, 132)
HSLhsl(240, 51%, 34%)
HSVhsv(240, 67%, 52%)
CMYKcmyk(67.4%, 67.4%, 0%, 48.2%)
CIE-LABlab(23.36, 29.69, -49.96)
CIE-LCHlch(23.36, 58.11, 300.72°)
OKLaboklab(35.16% 0.015 -0.1441)
OKLCHoklch(35.16% 0.145 276)
XYZxyz(6.0236, 3.9068, 22.2620)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2B84 #84842B
analogous
#2B5884 #2B2B84 #582B84
triadic
#2B2B84 #842B2B #2B842B
tetradic
#2B2B84 #842B58 #84842B #2B8458
square
#2B2B84 #842B58 #84842B #2B8458
split-complementary
#2B2B84 #84582B #58842B
monochromatic
#0D0D28 #1C1C56 #2B2B84 #3A3AB2 #5F5FCB

Accessibility & contrast

On white

11.79
#2B2B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2B2B84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2B84
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2B84#FFFFFF#000000##FFFFFF
##2B2B841.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C87
Deuteranopia (green-blind)
#003482
Tritanopia (blue-blind)
#004253
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2b2b84;
/* rgb */ color: rgb(43, 43, 132);
/* oklch */ color: oklch(35.2% 0.145 276.0);
Tailwind
colors: {
  custom: {
    50: '#7065a9',
    500: '#2b2b84',
    950: '#000000',
  },
}
SCSS
$custom: #2b2b84;
$custom-light: #7065a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2b84",
  "rgb": {
    "r": 43,
    "g": 43,
    "b": 132
  },
  "hsl": {
    "h": 240,
    "s": 50.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35158,
    "c": 0.1449,
    "h": 276
  },
  "luminance": 0.03907
}

Semantic roles & 50–950 ramp

primary
#2B2B84
secondary
#B1B15A
accent
#DA4DDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #2B2B84

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

Preview Lab → · Contrast checker → · Palette generator →

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