#2A2591#2A2591

#2A2591 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.169 H 275.4°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#2A2591
RGBrgb(42, 37, 145)
HSLhsl(243, 59%, 36%)
HSVhsv(243, 74%, 57%)
CMYKcmyk(71%, 74.5%, 0%, 43.1%)
CIE-LABlab(23.20, 37.84, -58.33)
CIE-LCHlch(23.20, 69.53, 302.97°)
OKLaboklab(35.41% 0.016 -0.1686)
OKLCHoklch(35.41% 0.169 275.4)
XYZxyz(6.7256, 3.8591, 27.1730)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2591 #8C9125
analogous
#255691 #2A2591 #602591
triadic
#2A2591 #912A25 #25912A
tetradic
#2A2591 #912556 #8C9125 #259160
square
#2A2591 #912556 #8C9125 #259160
split-complementary
#2A2591 #916025 #569125
monochromatic
#0E0C2F #1C1960 #2A2591 #3831C2 #615BD5

Accessibility & contrast

On white

11.85
#2A2591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2A2591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2591
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2591#FFFFFF#000000##FFFFFF
##2A25911.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C94
Deuteranopia (green-blind)
#00328F
Tritanopia (blue-blind)
#004459
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2591;
/* rgb */ color: rgb(42, 37, 145);
/* oklch */ color: oklch(35.4% 0.169 275.4);
Tailwind
colors: {
  custom: {
    50: '#7361b2',
    500: '#2a2591',
    950: '#000000',
  },
}
SCSS
$custom: #2a2591;
$custom-light: #7361b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2591",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 145
  },
  "hsl": {
    "h": 242.778,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35412,
    "c": 0.16938,
    "h": 275.4
  },
  "luminance": 0.0386
}

Semantic roles & 50–950 ramp

primary
#2A2591
secondary
#B5BA58
accent
#E345DB
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A2591

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

Preview Lab → · Contrast checker → · Palette generator →

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