#2A2299#2A2299

#2A2299 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.182 H 275.0°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#2A2299
RGBrgb(42, 34, 153)
HSLhsl(244, 64%, 37%)
HSVhsv(244, 78%, 60%)
CMYKcmyk(72.5%, 77.8%, 0%, 40%)
CIE-LABlab(23.46, 42.22, -62.84)
CIE-LCHlch(23.46, 75.71, 303.89°)
OKLaboklab(35.85% 0.0159 -0.1817)
OKLCHoklch(35.85% 0.182 275)
XYZxyz(7.2747, 3.9355, 30.5071)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2299 #919922
analogous
#225699 #2A2299 #662299
triadic
#2A2299 #992A22 #22992A
tetradic
#2A2299 #992256 #919922 #229966
square
#2A2299 #992256 #919922 #229966
split-complementary
#2A2299 #996622 #569922
monochromatic
#0F0C35 #1C1767 #2A2299 #382DCB #635BDB

Accessibility & contrast

On white

11.75
#2A2299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2299
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2299#FFFFFF#000000##FFFFFF
##2A22991.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2299;
/* rgb */ color: rgb(42, 34, 153);
/* oklch */ color: oklch(35.8% 0.182 275.0);
Tailwind
colors: {
  custom: {
    50: '#7660b8',
    500: '#2a2299',
    950: '#000000',
  },
}
SCSS
$custom: #2a2299;
$custom-light: #7660b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2299",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 153
  },
  "hsl": {
    "h": 244.034,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35849,
    "c": 0.18242,
    "h": 275
  },
  "luminance": 0.03936
}

Semantic roles & 50–950 ramp

primary
#2A2299
secondary
#B8BF58
accent
#E741DC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A2299

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

Preview Lab → · Contrast checker → · Palette generator →

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