#2A2297#2A2297

#2A2297 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.6% C 0.180 H 275.2°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#2A2297
RGBrgb(42, 34, 151)
HSLhsl(244, 63%, 36%)
HSVhsv(244, 77%, 59%)
CMYKcmyk(72.2%, 77.5%, 0%, 40.8%)
CIE-LABlab(23.24, 41.56, -61.98)
CIE-LCHlch(23.24, 74.62, 303.84°)
OKLaboklab(35.63% 0.0164 -0.1792)
OKLCHoklch(35.63% 0.18 275.2)
XYZxyz(7.1109, 3.8700, 29.6444)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2297 #8F9722
analogous
#225597 #2A2297 #652297
triadic
#2A2297 #972A22 #22972A
tetradic
#2A2297 #972255 #8F9722 #229765
square
#2A2297 #972255 #8F9722 #229765
split-complementary
#2A2297 #976522 #559722
monochromatic
#0E0C33 #1C1765 #2A2297 #382DC9 #625ADA

Accessibility & contrast

On white

11.84
#2A2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2A2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2297
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2297#FFFFFF#000000##FFFFFF
##2A22971.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2297;
/* rgb */ color: rgb(42, 34, 151);
/* oklch */ color: oklch(35.6% 0.180 275.2);
Tailwind
colors: {
  custom: {
    50: '#755fb7',
    500: '#2a2297',
    950: '#000000',
  },
}
SCSS
$custom: #2a2297;
$custom-light: #755fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2297",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 244.103,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35629,
    "c": 0.17996,
    "h": 275.2
  },
  "luminance": 0.03871
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2297

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

Preview Lab → · Contrast checker → · Palette generator →

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