#2A2588#2A2588

#2A2588 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.158 H 276.4°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#2A2588
RGBrgb(42, 37, 136)
HSLhsl(243, 57%, 34%)
HSVhsv(243, 73%, 53%)
CMYKcmyk(69.1%, 72.8%, 0%, 46.7%)
CIE-LABlab(22.28, 34.76, -54.25)
CIE-LCHlch(22.28, 64.43, 302.65°)
OKLaboklab(34.47% 0.0177 -0.1567)
OKLCHoklch(34.47% 0.158 276.4)
XYZxyz(6.0589, 3.5924, 23.6619)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2588 #838825
analogous
#255288 #2A2588 #5C2588
triadic
#2A2588 #882A25 #25882A
tetradic
#2A2588 #882552 #838825 #25885C
square
#2A2588 #882552 #838825 #25885C
split-complementary
#2A2588 #885C25 #528825
monochromatic
#0C0B28 #1B1858 #2A2588 #3932B8 #5D56D1

Accessibility & contrast

On white

12.22
#2A2588 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2A2588 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2588
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2588#FFFFFF#000000##FFFFFF
##2A25881.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003186
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a2588;
/* rgb */ color: rgb(42, 37, 136);
/* oklch */ color: oklch(34.5% 0.158 276.4);
Tailwind
colors: {
  custom: {
    50: '#7161ac',
    500: '#2a2588',
    950: '#000000',
  },
}
SCSS
$custom: #2a2588;
$custom-light: #7161ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2588",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 136
  },
  "hsl": {
    "h": 243.03,
    "s": 57.225,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34473,
    "c": 0.1577,
    "h": 276.4
  },
  "luminance": 0.03593
}

Semantic roles & 50–950 ramp

primary
#2A2588
secondary
#B1B653
accent
#E047D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2A2588

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

Preview Lab → · Contrast checker → · Palette generator →

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