#2A2498#2A2498

#2A2498 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.179 H 274.8°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#2A2498
RGBrgb(42, 36, 152)
HSLhsl(243, 62%, 37%)
HSVhsv(243, 76%, 60%)
CMYKcmyk(72.4%, 76.3%, 0%, 40.4%)
CIE-LABlab(23.74, 40.78, -61.76)
CIE-LCHlch(23.74, 74.01, 303.43°)
OKLaboklab(36.02% 0.0151 -0.1786)
OKLCHoklch(36.02% 0.179 274.8)
XYZxyz(7.2513, 4.0203, 30.0935)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2498 #929824
analogous
#245898 #2A2498 #642498
triadic
#2A2498 #982A24 #24982A
tetradic
#2A2498 #982458 #929824 #249864
square
#2A2498 #982458 #929824 #249864
split-complementary
#2A2498 #986424 #589824
monochromatic
#0F0D35 #1C1867 #2A2498 #3830C9 #645ED9

Accessibility & contrast

On white

11.64
#2A2498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2A2498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2498
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2498#FFFFFF#000000##FFFFFF
##2A24981.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003396
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a2498;
/* rgb */ color: rgb(42, 36, 152);
/* oklch */ color: oklch(36.0% 0.179 274.8);
Tailwind
colors: {
  custom: {
    50: '#7561b8',
    500: '#2a2498',
    950: '#000000',
  },
}
SCSS
$custom: #2a2498;
$custom-light: #7561b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2498",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 243.103,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36015,
    "c": 0.17925,
    "h": 274.8
  },
  "luminance": 0.04021
}

Semantic roles & 50–950 ramp

primary
#2A2498
secondary
#B8BE5A
accent
#E543DC
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2A2498

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

Preview Lab → · Contrast checker → · Palette generator →

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