#2A2BB7#2A2BB7

#2A2BB7 is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.4% C 0.210 H 271.6°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#2A2BB7
RGBrgb(42, 43, 183)
HSLhsl(240, 63%, 44%)
HSVhsv(240, 77%, 72%)
CMYKcmyk(77%, 76.5%, 0%, 28.2%)
CIE-LABlab(28.48, 47.14, -72.65)
CIE-LCHlch(28.48, 86.61, 302.98°)
OKLaboklab(40.36% 0.0059 -0.2103)
OKLCHoklch(40.36% 0.21 271.6)
XYZxyz(10.3631, 5.6378, 45.3326)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2BB7 #B7B62A
analogous
#2A72B7 #2A2BB7 #6F2AB7
triadic
#2A2BB7 #B72A2B #2BB72A
tetradic
#2A2BB7 #B72A72 #B7B62A #2AB76F
square
#2A2BB7 #B72A72 #B7B62A #2AB76F
split-complementary
#2A2BB7 #B76F2A #72B72A
monochromatic
#131453 #1F1F85 #2A2BB7 #494AD5 #7B7BE1

Accessibility & contrast

On white

9.87
#2A2BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2A2BB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2BB7
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2BB7#FFFFFF#000000##FFFFFF
##2A2BB71.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ABB
Deuteranopia (green-blind)
#003CB5
Tritanopia (blue-blind)
#005570
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a2bb7;
/* rgb */ color: rgb(42, 43, 183);
/* oklch */ color: oklch(40.4% 0.210 271.6);
Tailwind
colors: {
  custom: {
    50: '#7c67ce',
    500: '#2a2bb7',
    950: '#000000',
  },
}
SCSS
$custom: #2a2bb7;
$custom-light: #7c67ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2bb7",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 183
  },
  "hsl": {
    "h": 239.574,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.4036,
    "c": 0.21041,
    "h": 271.6
  },
  "luminance": 0.05639
}

Semantic roles & 50–950 ramp

primary
#2A2BB7
secondary
#C9C874
accent
#E542E6
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2A2BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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