#2A2A88#2A2A88

#2A2A88 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.152 H 275.3°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#2A2A88
RGBrgb(42, 42, 136)
HSLhsl(240, 53%, 35%)
HSVhsv(240, 69%, 53%)
CMYKcmyk(69.1%, 69.1%, 0%, 46.7%)
CIE-LABlab(23.42, 31.62, -52.37)
CIE-LCHlch(23.42, 61.17, 301.13°)
OKLaboklab(35.3% 0.0141 -0.1512)
OKLCHoklch(35.3% 0.152 275.3)
XYZxyz(6.2253, 3.9252, 23.7173)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A88 #88882A
analogous
#2A5988 #2A2A88 #592A88
triadic
#2A2A88 #882A2A #2A882A
tetradic
#2A2A88 #882A59 #88882A #2A8859
square
#2A2A88 #882A59 #88882A #2A8859
split-complementary
#2A2A88 #88592A #59882A
monochromatic
#0D0D2A #1C1C59 #2A2A88 #3838B7 #5F5FCE

Accessibility & contrast

On white

11.76
#2A2A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2A2A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A88
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A88#FFFFFF#000000##FFFFFF
##2A2A881.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8B
Deuteranopia (green-blind)
#003486
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a2a88;
/* rgb */ color: rgb(42, 42, 136);
/* oklch */ color: oklch(35.3% 0.152 275.3);
Tailwind
colors: {
  custom: {
    50: '#7164ac',
    500: '#2a2a88',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a88;
$custom-light: #7164ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a88",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 136
  },
  "hsl": {
    "h": 240,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35299,
    "c": 0.15186,
    "h": 275.3
  },
  "luminance": 0.03926
}

Semantic roles & 50–950 ramp

primary
#2A2A88
secondary
#B3B35B
accent
#DC4CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2A2A88

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

Preview Lab → · Contrast checker → · Palette generator →

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