#2A2A9E#2A2A9E

#2A2A9E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.5% C 0.181 H 273.4°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#2A2A9E
RGBrgb(42, 42, 158)
HSLhsl(240, 58%, 39%)
HSVhsv(240, 73%, 62%)
CMYKcmyk(73.4%, 73.4%, 0%, 38%)
CIE-LABlab(25.61, 39.33, -62.34)
CIE-LCHlch(25.61, 73.71, 302.24°)
OKLaboklab(37.54% 0.0108 -0.1803)
OKLCHoklch(37.54% 0.181 273.4)
XYZxyz(7.9523, 4.6160, 32.8130)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A9E #9E9E2A
analogous
#2A649E #2A2A9E #642A9E
triadic
#2A2A9E #9E2A2A #2A9E2A
tetradic
#2A2A9E #9E2A64 #9E9E2A #2A9E64
square
#2A2A9E #9E2A64 #9E9E2A #2A9E64
split-complementary
#2A2A9E #9E642A #649E2A
monochromatic
#10103D #1D1D6E #2A2A9E #3A3ACB #6B6BD8

Accessibility & contrast

On white

10.92
#2A2A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2A2A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A9E
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A9E#FFFFFF#000000##FFFFFF
##2A2A9E1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#00379C
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a2a9e;
/* rgb */ color: rgb(42, 42, 158);
/* oklch */ color: oklch(37.5% 0.181 273.4);
Tailwind
colors: {
  custom: {
    50: '#7665bc',
    500: '#2a2a9e',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a9e;
$custom-light: #7665bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a9e",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 240,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37535,
    "c": 0.18066,
    "h": 273.4
  },
  "luminance": 0.04617
}

Semantic roles & 50–950 ramp

primary
#2A2A9E
secondary
#BEBE66
accent
#E147E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2A2A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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