#2A2398#2A2398

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

Color values

HEX#2A2398
RGBrgb(42, 35, 152)
HSLhsl(244, 63%, 37%)
HSVhsv(244, 77%, 60%)
CMYKcmyk(72.4%, 77%, 0%, 40.4%)
CIE-LABlab(23.54, 41.34, -62.09)
CIE-LCHlch(23.54, 74.59, 303.65°)
OKLaboklab(35.88% 0.0156 -0.1795)
OKLCHoklch(35.88% 0.18 275)
XYZxyz(7.2215, 3.9606, 30.0836)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2398 #919823
analogous
#235798 #2A2398 #652398
triadic
#2A2398 #982A23 #23982A
tetradic
#2A2398 #982357 #919823 #239865
square
#2A2398 #982357 #919823 #239865
split-complementary
#2A2398 #986523 #579823
monochromatic
#0F0C35 #1C1866 #2A2398 #382ECA #635CD9

Accessibility & contrast

On white

11.72
#2A2398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2398
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2398#FFFFFF#000000##FFFFFF
##2A23981.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003396
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a2398;
/* rgb */ color: rgb(42, 35, 152);
/* oklch */ color: oklch(35.9% 0.180 275.0);
Tailwind
colors: {
  custom: {
    50: '#7560b8',
    500: '#2a2398',
    950: '#000000',
  },
}
SCSS
$custom: #2a2398;
$custom-light: #7560b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2398",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 243.59,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35876,
    "c": 0.18023,
    "h": 275
  },
  "luminance": 0.03961
}

Semantic roles & 50–950 ramp

primary
#2A2398
secondary
#B8BE59
accent
#E642DC
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2A2398

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

Preview Lab → · Contrast checker → · Palette generator →

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