#2A298F#2A298F

#2A298F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.8% C 0.162 H 274.9°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#2A298F
RGBrgb(42, 41, 143)
HSLhsl(241, 55%, 36%)
HSVhsv(241, 71%, 56%)
CMYKcmyk(70.6%, 71.3%, 0%, 43.9%)
CIE-LABlab(23.87, 34.73, -55.99)
CIE-LCHlch(23.87, 65.88, 301.81°)
OKLaboklab(35.83% 0.0138 -0.1618)
OKLCHoklch(35.83% 0.162 274.9)
XYZxyz(6.7041, 4.0607, 26.4118)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A298F #8E8F29
analogous
#295B8F #2A298F #5D298F
triadic
#2A298F #8F2A29 #298F2A
tetradic
#2A298F #8F295B #8E8F29 #298F5D
square
#2A298F #8F295B #8E8F29 #298F5D
split-complementary
#2A298F #8F5D29 #5B8F29
monochromatic
#0E0E30 #1C1B5F #2A298F #3837BF #6261D2

Accessibility & contrast

On white

11.59
#2A298F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2A298F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A298F
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A298F#FFFFFF#000000##FFFFFF
##2A298F1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a298f;
/* rgb */ color: rgb(42, 41, 143);
/* oklch */ color: oklch(35.8% 0.162 274.9);
Tailwind
colors: {
  custom: {
    50: '#7363b1',
    500: '#2a298f',
    950: '#000000',
  },
}
SCSS
$custom: #2a298f;
$custom-light: #7363b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a298f",
  "rgb": {
    "r": 42,
    "g": 41,
    "b": 143
  },
  "hsl": {
    "h": 240.588,
    "s": 55.435,
    "l": 36.078
  },
  "oklch": {
    "l": 0.3583,
    "c": 0.16238,
    "h": 274.9
  },
  "luminance": 0.04061
}

Semantic roles & 50–950 ramp

primary
#2A298F
secondary
#B6B75C
accent
#DF49DD
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #2A298F

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

Preview Lab → · Contrast checker → · Palette generator →

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