#2B2AA2#2B2AA2

#2B2AA2 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.0% C 0.185 H 273.5°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#2B2AA2
RGBrgb(43, 42, 162)
HSLhsl(241, 59%, 40%)
HSVhsv(241, 74%, 64%)
CMYKcmyk(73.5%, 74.1%, 0%, 36.5%)
CIE-LABlab(26.09, 40.79, -63.99)
CIE-LCHlch(26.09, 75.88, 302.52°)
OKLaboklab(38.02% 0.0113 -0.1851)
OKLCHoklch(38.02% 0.185 273.5)
XYZxyz(8.3436, 4.7773, 34.6578)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2AA2 #A1A22A
analogous
#2A65A2 #2B2AA2 #672AA2
triadic
#2B2AA2 #A22B2A #2AA22B
tetradic
#2B2AA2 #A22A65 #A1A22A #2AA267
square
#2B2AA2 #A22A65 #A1A22A #2AA267
split-complementary
#2B2AA2 #A2672A #65A22A
monochromatic
#111141 #1E1D71 #2B2AA2 #3E3DCD #6E6DD9

Accessibility & contrast

On white

10.74
#2B2AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2B2AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2AA2
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2AA2#FFFFFF#000000##FFFFFF
##2B2AA21.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A6
Deuteranopia (green-blind)
#0038A0
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2b2aa2;
/* rgb */ color: rgb(43, 42, 162);
/* oklch */ color: oklch(38.0% 0.185 273.5);
Tailwind
colors: {
  custom: {
    50: '#7765bf',
    500: '#2b2aa2',
    950: '#000000',
  },
}
SCSS
$custom: #2b2aa2;
$custom-light: #7765bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2aa2",
  "rgb": {
    "r": 43,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 240.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.38017,
    "c": 0.18545,
    "h": 273.5
  },
  "luminance": 0.04778
}

Semantic roles & 50–950 ramp

primary
#2B2AA2
secondary
#BFC068
accent
#E246E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2B2AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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