#2A2EA1#2A2EA1

#2A2EA1 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.5% C 0.180 H 272.6°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#2A2EA1
RGBrgb(42, 46, 161)
HSLhsl(238, 59%, 40%)
HSVhsv(238, 74%, 63%)
CMYKcmyk(73.9%, 71.4%, 0%, 36.9%)
CIE-LABlab(26.79, 37.96, -62.23)
CIE-LCHlch(26.79, 72.89, 301.38°)
OKLaboklab(38.47% 0.0081 -0.18)
OKLCHoklch(38.47% 0.18 272.6)
XYZxyz(8.3627, 5.0186, 34.2393)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2EA1 #A19D2A
analogous
#2A6AA1 #2A2EA1 #612AA1
triadic
#2A2EA1 #A12A2E #2EA12A
tetradic
#2A2EA1 #A12A6A #A19D2A #2AA161
square
#2A2EA1 #A12A6A #A19D2A #2AA161
split-complementary
#2A2EA1 #A1612A #6AA12A
monochromatic
#111240 #1D2070 #2A2EA1 #3C41CC #6D70D9

Accessibility & contrast

On white

10.48
#2A2EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2A2EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2EA1
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2EA1#FFFFFF#000000##FFFFFF
##2A2EA11.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A4
Deuteranopia (green-blind)
#003A9F
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a2ea1;
/* rgb */ color: rgb(42, 46, 161);
/* oklch */ color: oklch(38.5% 0.180 272.6);
Tailwind
colors: {
  custom: {
    50: '#7667be',
    500: '#2a2ea1',
    950: '#000000',
  },
}
SCSS
$custom: #2a2ea1;
$custom-light: #7667be;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2ea1",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 237.983,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38469,
    "c": 0.18021,
    "h": 272.6
  },
  "luminance": 0.05019
}

Semantic roles & 50–950 ramp

primary
#2A2EA1
secondary
#C0BD67
accent
#DD46E2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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