#2A298E#2A298E

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

Color values

HEX#2A298E
RGBrgb(42, 41, 142)
HSLhsl(241, 55%, 36%)
HSVhsv(241, 71%, 56%)
CMYKcmyk(70.4%, 71.1%, 0%, 44.3%)
CIE-LABlab(23.77, 34.38, -55.53)
CIE-LCHlch(23.77, 65.31, 301.76°)
OKLaboklab(35.73% 0.014 -0.1604)
OKLCHoklch(35.73% 0.161 275)
XYZxyz(6.6287, 4.0305, 26.0146)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A298E #8D8E29
analogous
#295A8E #2A298E #5C298E
triadic
#2A298E #8E2A29 #298E2A
tetradic
#2A298E #8E295A #8D8E29 #298E5C
square
#2A298E #8E295A #8D8E29 #298E5C
split-complementary
#2A298E #8E5C29 #5A8E29
monochromatic
#0E0E2F #1C1B5F #2A298E #3837BD #6160D1

Accessibility & contrast

On white

11.63
#2A298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A298E
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A298E#FFFFFF#000000##FFFFFF
##2A298E1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00348C
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a298e;
/* rgb */ color: rgb(42, 41, 142);
/* oklch */ color: oklch(35.7% 0.161 275.0);
Tailwind
colors: {
  custom: {
    50: '#7263b0',
    500: '#2a298e',
    950: '#000000',
  },
}
SCSS
$custom: #2a298e;
$custom-light: #7263b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a298e",
  "rgb": {
    "r": 42,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 240.594,
    "s": 55.191,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35729,
    "c": 0.16106,
    "h": 275
  },
  "luminance": 0.04031
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A298E

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

Preview Lab → · Contrast checker → · Palette generator →

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