#2A2AA5#2A2AA5

#2A2AA5 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.189 H 272.9°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#2A2AA5
RGBrgb(42, 42, 165)
HSLhsl(240, 59%, 41%)
HSVhsv(240, 75%, 65%)
CMYKcmyk(74.5%, 74.5%, 0%, 35.3%)
CIE-LABlab(26.34, 41.71, -65.39)
CIE-LCHlch(26.34, 77.56, 302.53°)
OKLaboklab(38.27% 0.0096 -0.1892)
OKLCHoklch(38.27% 0.189 272.9)
XYZxyz(8.5721, 4.8639, 36.0771)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2AA5 #A5A52A
analogous
#2A67A5 #2A2AA5 #672AA5
triadic
#2A2AA5 #A52A2A #2AA52A
tetradic
#2A2AA5 #A52A67 #A5A52A #2AA567
square
#2A2AA5 #A52A67 #A5A52A #2AA567
split-complementary
#2A2AA5 #A5672A #67A52A
monochromatic
#111143 #1E1E74 #2A2AA5 #3E3ECE #6F6FDA

Accessibility & contrast

On white

10.64
#2A2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2A2AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2AA5
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2AA5#FFFFFF#000000##FFFFFF
##2A2AA51.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A9
Deuteranopia (green-blind)
#0038A3
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a2aa5;
/* rgb */ color: rgb(42, 42, 165);
/* oklch */ color: oklch(38.3% 0.189 272.9);
Tailwind
colors: {
  custom: {
    50: '#7865c1',
    500: '#2a2aa5',
    950: '#000000',
  },
}
SCSS
$custom: #2a2aa5;
$custom-light: #7865c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2aa5",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 240,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38274,
    "c": 0.18945,
    "h": 272.9
  },
  "luminance": 0.04865
}

Semantic roles & 50–950 ramp

primary
#2A2AA5
secondary
#C1C169
accent
#E345E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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