#2A298C#2A298C

#2A298C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.158 H 275.2°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#2A298C
RGBrgb(42, 41, 140)
HSLhsl(241, 55%, 35%)
HSVhsv(241, 71%, 55%)
CMYKcmyk(70%, 70.7%, 0%, 45.1%)
CIE-LABlab(23.58, 33.67, -54.61)
CIE-LCHlch(23.58, 64.16, 301.66°)
OKLaboklab(35.53% 0.0143 -0.1578)
OKLCHoklch(35.53% 0.158 275.2)
XYZxyz(6.4798, 3.9710, 25.2308)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A298C #8B8C29
analogous
#29598C #2A298C #5B298C
triadic
#2A298C #8C2A29 #298C2A
tetradic
#2A298C #8C2959 #8B8C29 #298C5B
square
#2A298C #8C2959 #8B8C29 #298C5B
split-complementary
#2A298C #8C5B29 #598C29
monochromatic
#0E0D2D #1C1B5D #2A298C #3837BB #605FD0

Accessibility & contrast

On white

11.70
#2A298C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A298C
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A298C#FFFFFF#000000##FFFFFF
##2A298C1.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a298c;
/* rgb */ color: rgb(42, 41, 140);
/* oklch */ color: oklch(35.5% 0.158 275.2);
Tailwind
colors: {
  custom: {
    50: '#7263af',
    500: '#2a298c',
    950: '#000000',
  },
}
SCSS
$custom: #2a298c;
$custom-light: #7263af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a298c",
  "rgb": {
    "r": 42,
    "g": 41,
    "b": 140
  },
  "hsl": {
    "h": 240.606,
    "s": 54.696,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35527,
    "c": 0.1584,
    "h": 275.2
  },
  "luminance": 0.03972
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A298C

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

Preview Lab → · Contrast checker → · Palette generator →

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