#2A298B#2A298B

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

Color values

HEX#2A298B
RGBrgb(42, 41, 139)
HSLhsl(241, 54%, 35%)
HSVhsv(241, 71%, 55%)
CMYKcmyk(69.8%, 70.5%, 0%, 45.5%)
CIE-LABlab(23.48, 33.32, -54.15)
CIE-LCHlch(23.48, 63.58, 301.61°)
OKLaboklab(35.43% 0.0144 -0.1564)
OKLCHoklch(35.43% 0.157 275.3)
XYZxyz(6.4064, 3.9416, 24.8443)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A298B #8A8B29
analogous
#29598B #2A298B #5B298B
triadic
#2A298B #8B2A29 #298B2A
tetradic
#2A298B #8B2959 #8A8B29 #298B5B
square
#2A298B #8B2959 #8A8B29 #298B5B
split-complementary
#2A298B #8B5B29 #598B29
monochromatic
#0D0D2C #1C1B5C #2A298B #3837BA #605FD0

Accessibility & contrast

On white

11.74
#2A298B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A298B
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A298B#FFFFFF#000000##FFFFFF
##2A298B1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a298b;
/* rgb */ color: rgb(42, 41, 139);
/* oklch */ color: oklch(35.4% 0.157 275.3);
Tailwind
colors: {
  custom: {
    50: '#7263ae',
    500: '#2a298b',
    950: '#000000',
  },
}
SCSS
$custom: #2a298b;
$custom-light: #7263ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a298b",
  "rgb": {
    "r": 42,
    "g": 41,
    "b": 139
  },
  "hsl": {
    "h": 240.612,
    "s": 54.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35427,
    "c": 0.15707,
    "h": 275.3
  },
  "luminance": 0.03942
}

Semantic roles & 50–950 ramp

primary
#2A298B
secondary
#B4B55B
accent
#DE4ADC
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2A298B

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

Preview Lab → · Contrast checker → · Palette generator →

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