#2A2D89#2A2D89

#2A2D89 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.150 H 274.5°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#2A2D89
RGBrgb(42, 45, 137)
HSLhsl(238, 53%, 35%)
HSVhsv(238, 69%, 54%)
CMYKcmyk(69.3%, 67.2%, 0%, 46.3%)
CIE-LABlab(24.24, 30.04, -51.65)
CIE-LCHlch(24.24, 59.75, 300.18°)
OKLaboklab(35.92% 0.0117 -0.1491)
OKLCHoklch(35.92% 0.15 274.5)
XYZxyz(6.4071, 4.1746, 24.1302)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D89 #89862A
analogous
#2A5D89 #2A2D89 #562A89
triadic
#2A2D89 #892A2D #2D892A
tetradic
#2A2D89 #892A5D #89862A #2A8956
square
#2A2D89 #892A5D #89862A #2A8956
split-complementary
#2A2D89 #89562A #5D892A
monochromatic
#0D0E2B #1C1E5A #2A2D89 #383CB8 #5F63CE

Accessibility & contrast

On white

11.44
#2A2D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2A2D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2D89
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D89#FFFFFF#000000##FFFFFF
##2A2D891.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8C
Deuteranopia (green-blind)
#003587
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a2d89;
/* rgb */ color: rgb(42, 45, 137);
/* oklch */ color: oklch(35.9% 0.150 274.5);
Tailwind
colors: {
  custom: {
    50: '#7166ac',
    500: '#2a2d89',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d89;
$custom-light: #7166ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d89",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 137
  },
  "hsl": {
    "h": 238.105,
    "s": 53.073,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35922,
    "c": 0.14955,
    "h": 274.5
  },
  "luminance": 0.04175
}

Semantic roles & 50–950 ramp

primary
#2A2D89
secondary
#B4B15B
accent
#D84BDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2A2D89

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

Preview Lab → · Contrast checker → · Palette generator →

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