#2A2496#2A2496

#2A2496 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.177 H 275.0°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#2A2496
RGBrgb(42, 36, 150)
HSLhsl(243, 61%, 36%)
HSVhsv(243, 76%, 59%)
CMYKcmyk(72%, 76%, 0%, 41.2%)
CIE-LABlab(23.52, 40.11, -60.89)
CIE-LCHlch(23.52, 72.91, 303.37°)
OKLaboklab(35.8% 0.0156 -0.1761)
OKLCHoklch(35.8% 0.177 275)
XYZxyz(7.0889, 3.9553, 29.2381)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2496 #909624
analogous
#245796 #2A2496 #632496
triadic
#2A2496 #962A24 #24962A
tetradic
#2A2496 #962457 #909624 #249663
square
#2A2496 #962457 #909624 #249663
split-complementary
#2A2496 #966324 #579624
monochromatic
#0E0C33 #1C1865 #2A2496 #3830C7 #635CD8

Accessibility & contrast

On white

11.72
#2A2496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2A2496 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2496
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2496#FFFFFF#000000##FFFFFF
##2A24961.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003394
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a2496;
/* rgb */ color: rgb(42, 36, 150);
/* oklch */ color: oklch(35.8% 0.177 275.0);
Tailwind
colors: {
  custom: {
    50: '#7561b6',
    500: '#2a2496',
    950: '#000000',
  },
}
SCSS
$custom: #2a2496;
$custom-light: #7561b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2496",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 150
  },
  "hsl": {
    "h": 243.158,
    "s": 61.29,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35799,
    "c": 0.17675,
    "h": 275
  },
  "luminance": 0.03956
}

Semantic roles & 50–950 ramp

primary
#2A2496
secondary
#B7BD59
accent
#E443DC
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2A2496

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

Preview Lab → · Contrast checker → · Palette generator →

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