#2A2A9A#2A2A9A

#2A2A9A is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.1% C 0.176 H 273.7°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#2A2A9A
RGBrgb(42, 42, 154)
HSLhsl(240, 57%, 38%)
HSVhsv(240, 73%, 60%)
CMYKcmyk(72.7%, 72.7%, 0%, 39.6%)
CIE-LABlab(25.20, 37.95, -60.58)
CIE-LCHlch(25.20, 71.48, 302.06°)
OKLaboklab(37.12% 0.0115 -0.1752)
OKLCHoklch(37.12% 0.176 273.7)
XYZxyz(7.6136, 4.4805, 31.0292)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A9A #9A9A2A
analogous
#2A629A #2A2A9A #622A9A
triadic
#2A2A9A #9A2A2A #2A9A2A
tetradic
#2A2A9A #9A2A62 #9A9A2A #2A9A62
square
#2A2A9A #9A2A62 #9A9A2A #2A9A62
split-complementary
#2A2A9A #9A622A #629A2A
monochromatic
#10103A #1D1D6A #2A2A9A #3838C9 #6868D6

Accessibility & contrast

On white

11.07
#2A2A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2A2A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A9A
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A9A#FFFFFF#000000##FFFFFF
##2A2A9A1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419D
Deuteranopia (green-blind)
#003698
Tritanopia (blue-blind)
#00495F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a2a9a;
/* rgb */ color: rgb(42, 42, 154);
/* oklch */ color: oklch(37.1% 0.176 273.7);
Tailwind
colors: {
  custom: {
    50: '#7565b9',
    500: '#2a2a9a',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a9a;
$custom-light: #7565b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a9a",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 154
  },
  "hsl": {
    "h": 240,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37117,
    "c": 0.17557,
    "h": 273.7
  },
  "luminance": 0.04481
}

Semantic roles & 50–950 ramp

primary
#2A2A9A
secondary
#BCBC63
accent
#E047E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2A2A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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