#2A2AA2#2A2AA2

#2A2AA2 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.0% C 0.186 H 273.1°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#2A2AA2
RGBrgb(42, 42, 162)
HSLhsl(240, 59%, 40%)
HSVhsv(240, 74%, 64%)
CMYKcmyk(74.1%, 74.1%, 0%, 36.5%)
CIE-LABlab(26.03, 40.69, -64.09)
CIE-LCHlch(26.03, 75.92, 302.41°)
OKLaboklab(37.96% 0.0101 -0.1854)
OKLCHoklch(37.96% 0.186 273.1)
XYZxyz(8.3022, 4.7560, 34.6559)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2AA2 #A2A22A
analogous
#2A66A2 #2A2AA2 #662AA2
triadic
#2A2AA2 #A22A2A #2AA22A
tetradic
#2A2AA2 #A22A66 #A2A22A #2AA266
square
#2A2AA2 #A22A66 #A2A22A #2AA266
split-complementary
#2A2AA2 #A2662A #66A22A
monochromatic
#111141 #1D1D71 #2A2AA2 #3D3DCD #6D6DD9

Accessibility & contrast

On white

10.76
#2A2AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2A2AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2AA2
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2AA2#FFFFFF#000000##FFFFFF
##2A2AA21.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A6
Deuteranopia (green-blind)
#0038A0
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a2aa2;
/* rgb */ color: rgb(42, 42, 162);
/* oklch */ color: oklch(38.0% 0.186 273.1);
Tailwind
colors: {
  custom: {
    50: '#7765bf',
    500: '#2a2aa2',
    950: '#000000',
  },
}
SCSS
$custom: #2a2aa2;
$custom-light: #7765bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2aa2",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 240,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.37956,
    "c": 0.18571,
    "h": 273.1
  },
  "luminance": 0.04757
}

Semantic roles & 50–950 ramp

primary
#2A2AA2
secondary
#C0C068
accent
#E246E2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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