#2A2298#2A2298

#2A2298 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.181 H 275.1°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#2A2298
RGBrgb(42, 34, 152)
HSLhsl(244, 63%, 36%)
HSVhsv(244, 78%, 60%)
CMYKcmyk(72.4%, 77.6%, 0%, 40.4%)
CIE-LABlab(23.35, 41.89, -62.41)
CIE-LCHlch(23.35, 75.16, 303.87°)
OKLaboklab(35.74% 0.0161 -0.1805)
OKLCHoklch(35.74% 0.181 275.1)
XYZxyz(7.1925, 3.9026, 30.0739)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2298 #909822
analogous
#225598 #2A2298 #652298
triadic
#2A2298 #982A22 #22982A
tetradic
#2A2298 #982255 #909822 #229865
square
#2A2298 #982255 #909822 #229865
split-complementary
#2A2298 #986522 #559822
monochromatic
#0E0C34 #1C1766 #2A2298 #382DCA #635ADA

Accessibility & contrast

On white

11.79
#2A2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2A2298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2298
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2298#FFFFFF#000000##FFFFFF
##2A22981.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2298;
/* rgb */ color: rgb(42, 34, 152);
/* oklch */ color: oklch(35.7% 0.181 275.1);
Tailwind
colors: {
  custom: {
    50: '#755fb8',
    500: '#2a2298',
    950: '#000000',
  },
}
SCSS
$custom: #2a2298;
$custom-light: #755fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2298",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 244.068,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35739,
    "c": 0.18119,
    "h": 275.1
  },
  "luminance": 0.03903
}

Semantic roles & 50–950 ramp

primary
#2A2298
secondary
#B7BE57
accent
#E641DB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2A2298

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

Preview Lab → · Contrast checker → · Palette generator →

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