#2A2EA0#2A2EA0

#2A2EA0 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.4% C 0.179 H 272.7°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#2A2EA0
RGBrgb(42, 46, 160)
HSLhsl(238, 58%, 40%)
HSVhsv(238, 74%, 63%)
CMYKcmyk(73.8%, 71.2%, 0%, 37.3%)
CIE-LABlab(26.69, 37.61, -61.79)
CIE-LCHlch(26.69, 72.33, 301.33°)
OKLaboklab(38.37% 0.0083 -0.1787)
OKLCHoklch(38.37% 0.179 272.7)
XYZxyz(8.2749, 4.9835, 33.7767)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2EA0 #A09C2A
analogous
#2A69A0 #2A2EA0 #612AA0
triadic
#2A2EA0 #A02A2E #2EA02A
tetradic
#2A2EA0 #A02A69 #A09C2A #2AA061
square
#2A2EA0 #A02A69 #A09C2A #2AA061
split-complementary
#2A2EA0 #A0612A #69A02A
monochromatic
#11123F #1D2070 #2A2EA0 #3C40CC #6C70D8

Accessibility & contrast

On white

10.52
#2A2EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2EA0
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2EA0#FFFFFF#000000##FFFFFF
##2A2EA01.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A3
Deuteranopia (green-blind)
#00399E
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a2ea0;
/* rgb */ color: rgb(42, 46, 160);
/* oklch */ color: oklch(38.4% 0.179 272.7);
Tailwind
colors: {
  custom: {
    50: '#7667bd',
    500: '#2a2ea0',
    950: '#000000',
  },
}
SCSS
$custom: #2a2ea0;
$custom-light: #7667bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2ea0",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 160
  },
  "hsl": {
    "h": 237.966,
    "s": 58.416,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38366,
    "c": 0.17892,
    "h": 272.7
  },
  "luminance": 0.04984
}

Semantic roles & 50–950 ramp

primary
#2A2EA0
secondary
#BFBC67
accent
#DC46E2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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