#2A2EAB#2A2EAB

#2A2EAB is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.5% C 0.193 H 272.0°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#2A2EAB
RGBrgb(42, 46, 171)
HSLhsl(238, 61%, 42%)
HSVhsv(238, 75%, 67%)
CMYKcmyk(75.4%, 73.1%, 0%, 32.9%)
CIE-LABlab(27.81, 41.42, -66.59)
CIE-LCHlch(27.81, 78.42, 301.88°)
OKLaboklab(39.5% 0.0067 -0.1927)
OKLCHoklch(39.5% 0.193 272)
XYZxyz(9.2800, 5.3855, 39.0706)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2EAB #ABA72A
analogous
#2A6EAB #2A2EAB #672AAB
triadic
#2A2EAB #AB2A2E #2EAB2A
tetradic
#2A2EAB #AB2A6E #ABA72A #2AAB67
square
#2A2EAB #AB2A6E #ABA72A #2AAB67
split-complementary
#2A2EAB #AB672A #6EAB2A
monochromatic
#121449 #1E217A #2A2EAB #4246D1 #7376DD

Accessibility & contrast

On white

10.11
#2A2EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2A2EAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2EAB
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2EAB#FFFFFF#000000##FFFFFF
##2A2EAB1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AF
Deuteranopia (green-blind)
#003BA9
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a2eab;
/* rgb */ color: rgb(42, 46, 171);
/* oklch */ color: oklch(39.5% 0.193 272.0);
Tailwind
colors: {
  custom: {
    50: '#7968c5',
    500: '#2a2eab',
    950: '#000000',
  },
}
SCSS
$custom: #2a2eab;
$custom-light: #7968c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2eab",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 171
  },
  "hsl": {
    "h": 238.14,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39503,
    "c": 0.19286,
    "h": 272
  },
  "luminance": 0.05387
}

Semantic roles & 50–950 ramp

primary
#2A2EAB
secondary
#C4C16D
accent
#DF44E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A2EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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