#2A2AA6#2A2AA6

#2A2AA6 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.4% C 0.191 H 272.8°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#2A2AA6
RGBrgb(42, 42, 166)
HSLhsl(240, 60%, 41%)
HSVhsv(240, 75%, 65%)
CMYKcmyk(74.7%, 74.7%, 0%, 34.9%)
CIE-LABlab(26.45, 42.05, -65.82)
CIE-LCHlch(26.45, 78.10, 302.57°)
OKLaboklab(38.38% 0.0094 -0.1905)
OKLCHoklch(38.38% 0.191 272.8)
XYZxyz(8.6634, 4.9004, 36.5583)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2AA6 #A6A62A
analogous
#2A68A6 #2A2AA6 #682AA6
triadic
#2A2AA6 #A62A2A #2AA62A
tetradic
#2A2AA6 #A62A68 #A6A62A #2AA668
square
#2A2AA6 #A62A68 #A6A62A #2AA668
split-complementary
#2A2AA6 #A6682A #68A62A
monochromatic
#111144 #1E1E75 #2A2AA6 #3F3FCE #7070DB

Accessibility & contrast

On white

10.60
#2A2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2A2AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2AA6
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2AA6#FFFFFF#000000##FFFFFF
##2A2AA61.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#0038A4
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a2aa6;
/* rgb */ color: rgb(42, 42, 166);
/* oklch */ color: oklch(38.4% 0.191 272.8);
Tailwind
colors: {
  custom: {
    50: '#7865c2',
    500: '#2a2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #2a2aa6;
$custom-light: #7865c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2aa6",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 240,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38381,
    "c": 0.19069,
    "h": 272.8
  },
  "luminance": 0.04901
}

Semantic roles & 50–950 ramp

primary
#2A2AA6
secondary
#C2C26A
accent
#E345E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #2A2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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