#2B2AA5#2B2AA5

#2B2AA5 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.189 H 273.3°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#2B2AA5
RGBrgb(43, 42, 165)
HSLhsl(240, 59%, 41%)
HSVhsv(240, 75%, 65%)
CMYKcmyk(73.9%, 74.5%, 0%, 35.3%)
CIE-LABlab(26.41, 41.80, -65.28)
CIE-LCHlch(26.41, 77.52, 302.63°)
OKLaboklab(38.34% 0.0108 -0.1889)
OKLCHoklch(38.34% 0.189 273.3)
XYZxyz(8.6135, 4.8853, 36.0790)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2AA5 #A4A52A
analogous
#2A66A5 #2B2AA5 #682AA5
triadic
#2B2AA5 #A52B2A #2AA52B
tetradic
#2B2AA5 #A52A66 #A4A52A #2AA568
square
#2B2AA5 #A52A66 #A4A52A #2AA568
split-complementary
#2B2AA5 #A5682A #66A52A
monochromatic
#121143 #1E1E74 #2B2AA5 #3F3ECE #706FDA

Accessibility & contrast

On white

10.62
#2B2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2B2AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2AA5
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2AA5#FFFFFF#000000##FFFFFF
##2B2AA51.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A9
Deuteranopia (green-blind)
#0038A3
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2b2aa5;
/* rgb */ color: rgb(43, 42, 165);
/* oklch */ color: oklch(38.3% 0.189 273.3);
Tailwind
colors: {
  custom: {
    50: '#7865c1',
    500: '#2b2aa5',
    950: '#000000',
  },
}
SCSS
$custom: #2b2aa5;
$custom-light: #7865c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2aa5",
  "rgb": {
    "r": 43,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 240.488,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38335,
    "c": 0.18919,
    "h": 273.3
  },
  "luminance": 0.04886
}

Semantic roles & 50–950 ramp

primary
#2B2AA5
secondary
#C1C169
accent
#E345E1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2B2AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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