#2A298D#2A298D

#2A298D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.160 H 275.1°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#2A298D
RGBrgb(42, 41, 141)
HSLhsl(241, 55%, 36%)
HSVhsv(241, 71%, 55%)
CMYKcmyk(70.2%, 70.9%, 0%, 44.7%)
CIE-LABlab(23.67, 34.03, -55.07)
CIE-LCHlch(23.67, 64.74, 301.71°)
OKLaboklab(35.63% 0.0141 -0.1591)
OKLCHoklch(35.63% 0.16 275.1)
XYZxyz(6.5539, 4.0006, 25.6209)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A298D #8C8D29
analogous
#295A8D #2A298D #5C298D
triadic
#2A298D #8D2A29 #298D2A
tetradic
#2A298D #8D295A #8C8D29 #298D5C
square
#2A298D #8D295A #8C8D29 #298D5C
split-complementary
#2A298D #8D5C29 #5A8D29
monochromatic
#0E0D2E #1C1B5E #2A298D #3837BC #6160D1

Accessibility & contrast

On white

11.67
#2A298D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A298D
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A298D#FFFFFF#000000##FFFFFF
##2A298D1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a298d;
/* rgb */ color: rgb(42, 41, 141);
/* oklch */ color: oklch(35.6% 0.160 275.1);
Tailwind
colors: {
  custom: {
    50: '#7263af',
    500: '#2a298d',
    950: '#000000',
  },
}
SCSS
$custom: #2a298d;
$custom-light: #7263af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a298d",
  "rgb": {
    "r": 42,
    "g": 41,
    "b": 141
  },
  "hsl": {
    "h": 240.6,
    "s": 54.945,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35628,
    "c": 0.15974,
    "h": 275.1
  },
  "luminance": 0.04001
}

Semantic roles & 50–950 ramp

primary
#2A298D
secondary
#B5B65B
accent
#DE4ADD
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2A298D

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

Preview Lab → · Contrast checker → · Palette generator →

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