#2A2BB4#2A2BB4

#2A2BB4 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.0% C 0.207 H 271.8°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#2A2BB4
RGBrgb(42, 43, 180)
HSLhsl(240, 62%, 44%)
HSVhsv(240, 77%, 71%)
CMYKcmyk(76.7%, 76.1%, 0%, 29.4%)
CIE-LABlab(28.15, 46.16, -71.41)
CIE-LCHlch(28.15, 85.03, 302.88°)
OKLaboklab(40.03% 0.0064 -0.2067)
OKLCHoklch(40.03% 0.207 271.8)
XYZxyz(10.0542, 5.5142, 43.7056)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2BB4 #B4B32A
analogous
#2A70B4 #2A2BB4 #6E2AB4
triadic
#2A2BB4 #B42A2B #2BB42A
tetradic
#2A2BB4 #B42A70 #B4B32A #2AB46E
square
#2A2BB4 #B42A70 #B4B32A #2AB46E
split-complementary
#2A2BB4 #B46E2A #70B42A
monochromatic
#131351 #1E1F82 #2A2BB4 #4748D4 #7979E0

Accessibility & contrast

On white

9.99
#2A2BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2A2BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2BB4
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2BB4#FFFFFF#000000##FFFFFF
##2A2BB41.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B8
Deuteranopia (green-blind)
#003BB2
Tritanopia (blue-blind)
#00546E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a2bb4;
/* rgb */ color: rgb(42, 43, 180);
/* oklch */ color: oklch(40.0% 0.207 271.8);
Tailwind
colors: {
  custom: {
    50: '#7b66cc',
    500: '#2a2bb4',
    950: '#000000',
  },
}
SCSS
$custom: #2a2bb4;
$custom-light: #7b66cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2bb4",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 180
  },
  "hsl": {
    "h": 239.565,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40033,
    "c": 0.20682,
    "h": 271.8
  },
  "luminance": 0.05515
}

Semantic roles & 50–950 ramp

primary
#2A2BB4
secondary
#C8C772
accent
#E443E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2A2BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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