#2A2EAF#2A2EAF

#2A2EAF is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.9% C 0.198 H 271.7°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#2A2EAF
RGBrgb(42, 46, 175)
HSLhsl(238, 61%, 43%)
HSVhsv(238, 76%, 69%)
CMYKcmyk(76%, 73.7%, 0%, 31.4%)
CIE-LABlab(28.22, 42.78, -68.31)
CIE-LCHlch(28.22, 80.60, 302.06°)
OKLaboklab(39.92% 0.006 -0.1977)
OKLCHoklch(39.92% 0.198 271.7)
XYZxyz(9.6671, 5.5403, 41.1090)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2EAF #AFAB2A
analogous
#2A71AF #2A2EAF #682AAF
triadic
#2A2EAF #AF2A2E #2EAF2A
tetradic
#2A2EAF #AF2A71 #AFAB2A #2AAF68
square
#2A2EAF #AF2A71 #AFAB2A #2AAF68
split-complementary
#2A2EAF #AF682A #71AF2A
monochromatic
#12144C #1E217E #2A2EAF #4448D2 #7579DE

Accessibility & contrast

On white

9.96
#2A2EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2A2EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2EAF
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2EAF#FFFFFF#000000##FFFFFF
##2A2EAF1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B3
Deuteranopia (green-blind)
#003CAD
Tritanopia (blue-blind)
#00536C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a2eaf;
/* rgb */ color: rgb(42, 46, 175);
/* oklch */ color: oklch(39.9% 0.198 271.7);
Tailwind
colors: {
  custom: {
    50: '#7a68c8',
    500: '#2a2eaf',
    950: '#000000',
  },
}
SCSS
$custom: #2a2eaf;
$custom-light: #7a68c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2eaf",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 175
  },
  "hsl": {
    "h": 238.195,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.39924,
    "c": 0.19782,
    "h": 271.7
  },
  "luminance": 0.05541
}

Semantic roles & 50–950 ramp

primary
#2A2EAF
secondary
#C6C36F
accent
#E043E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A2EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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