#2A2A90#2A2A90

#2A2A90 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.1% C 0.163 H 274.6°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#2A2A90
RGBrgb(42, 42, 144)
HSLhsl(240, 55%, 36%)
HSVhsv(240, 71%, 56%)
CMYKcmyk(70.8%, 70.8%, 0%, 43.5%)
CIE-LABlab(24.20, 34.46, -56.07)
CIE-LCHlch(24.20, 65.81, 301.57°)
OKLaboklab(36.1% 0.013 -0.162)
OKLCHoklch(36.1% 0.163 274.6)
XYZxyz(6.8152, 4.1611, 26.8242)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A90 #90902A
analogous
#2A5D90 #2A2A90 #5D2A90
triadic
#2A2A90 #902A2A #2A902A
tetradic
#2A2A90 #902A5D #90902A #2A905D
square
#2A2A90 #902A5D #90902A #2A905D
split-complementary
#2A2A90 #905D2A #5D902A
monochromatic
#0E0E31 #1C1C61 #2A2A90 #3838BF #6363D1

Accessibility & contrast

On white

11.46
#2A2A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2A2A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A90
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A90#FFFFFF#000000##FFFFFF
##2A2A901.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E93
Deuteranopia (green-blind)
#00358E
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a2a90;
/* rgb */ color: rgb(42, 42, 144);
/* oklch */ color: oklch(36.1% 0.163 274.6);
Tailwind
colors: {
  custom: {
    50: '#7364b2',
    500: '#2a2a90',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a90;
$custom-light: #7364b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a90",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 144
  },
  "hsl": {
    "h": 240,
    "s": 54.839,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36095,
    "c": 0.16255,
    "h": 274.6
  },
  "luminance": 0.04162
}

Semantic roles & 50–950 ramp

primary
#2A2A90
secondary
#B7B75E
accent
#DE4ADE
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #2A2A90

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

Preview Lab → · Contrast checker → · Palette generator →

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