#2A2AA3#2A2AA3

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

Color values

HEX#2A2AA3
RGBrgb(42, 42, 163)
HSLhsl(240, 59%, 40%)
HSVhsv(240, 74%, 64%)
CMYKcmyk(74.2%, 74.2%, 0%, 36.1%)
CIE-LABlab(26.13, 41.03, -64.53)
CIE-LCHlch(26.13, 76.47, 302.45°)
OKLaboklab(38.06% 0.01 -0.1867)
OKLCHoklch(38.06% 0.187 273.1)
XYZxyz(8.3915, 4.7917, 35.1259)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2AA3 #A3A32A
analogous
#2A66A3 #2A2AA3 #662AA3
triadic
#2A2AA3 #A32A2A #2AA32A
tetradic
#2A2AA3 #A32A66 #A3A32A #2AA366
square
#2A2AA3 #A32A66 #A3A32A #2AA366
split-complementary
#2A2AA3 #A3662A #66A32A
monochromatic
#111142 #1D1D72 #2A2AA3 #3D3DCD #6E6EDA

Accessibility & contrast

On white

10.72
#2A2AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2A2AA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2AA3
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2AA3#FFFFFF#000000##FFFFFF
##2A2AA31.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A7
Deuteranopia (green-blind)
#0038A1
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a2aa3;
/* rgb */ color: rgb(42, 42, 163);
/* oklch */ color: oklch(38.1% 0.187 273.1);
Tailwind
colors: {
  custom: {
    50: '#7765bf',
    500: '#2a2aa3',
    950: '#000000',
  },
}
SCSS
$custom: #2a2aa3;
$custom-light: #7765bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2aa3",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 163
  },
  "hsl": {
    "h": 240,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38062,
    "c": 0.18695,
    "h": 273.1
  },
  "luminance": 0.04793
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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