#2A2EB0#2A2EB0

#2A2EB0 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.0% C 0.199 H 271.7°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#2A2EB0
RGBrgb(42, 46, 176)
HSLhsl(238, 61%, 43%)
HSVhsv(238, 76%, 69%)
CMYKcmyk(76.1%, 73.9%, 0%, 31%)
CIE-LABlab(28.33, 43.12, -68.73)
CIE-LCHlch(28.33, 81.14, 302.10°)
OKLaboklab(40.03% 0.0059 -0.199)
OKLCHoklch(40.03% 0.199 271.7)
XYZxyz(9.7657, 5.5798, 41.6282)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2EB0 #B0AC2A
analogous
#2A71B0 #2A2EB0 #692AB0
triadic
#2A2EB0 #B02A2E #2EB02A
tetradic
#2A2EB0 #B02A71 #B0AC2A #2AB069
square
#2A2EB0 #B02A71 #B0AC2A #2AB069
split-complementary
#2A2EB0 #B0692A #71B02A
monochromatic
#12144D #1E217F #2A2EB0 #4549D3 #7679DE

Accessibility & contrast

On white

9.92
#2A2EB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2A2EB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2EB0
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2EB0#FFFFFF#000000##FFFFFF
##2A2EB01.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B4
Deuteranopia (green-blind)
#003CAE
Tritanopia (blue-blind)
#00546C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a2eb0;
/* rgb */ color: rgb(42, 46, 176);
/* oklch */ color: oklch(40.0% 0.199 271.7);
Tailwind
colors: {
  custom: {
    50: '#7a68c9',
    500: '#2a2eb0',
    950: '#000000',
  },
}
SCSS
$custom: #2a2eb0;
$custom-light: #7a68c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2eb0",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 176
  },
  "hsl": {
    "h": 238.209,
    "s": 61.468,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4003,
    "c": 0.19905,
    "h": 271.7
  },
  "luminance": 0.05581
}

Semantic roles & 50–950 ramp

primary
#2A2EB0
secondary
#C6C370
accent
#E043E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A2EB0

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

Preview Lab → · Contrast checker → · Palette generator →

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