#2A2099#2A2099

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

Color values

HEX#2A2099
RGBrgb(42, 32, 153)
HSLhsl(245, 65%, 36%)
HSVhsv(245, 79%, 60%)
CMYKcmyk(72.5%, 79.1%, 0%, 40%)
CIE-LABlab(23.08, 43.29, -63.46)
CIE-LCHlch(23.08, 76.82, 304.30°)
OKLaboklab(35.59% 0.0168 -0.1835)
OKLCHoklch(35.59% 0.184 275.2)
XYZxyz(7.2192, 3.8245, 30.4886)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2099 #8F9920
analogous
#205399 #2A2099 #672099
triadic
#2A2099 #992A20 #20992A
tetradic
#2A2099 #992053 #8F9920 #209967
square
#2A2099 #992053 #8F9920 #209967
split-complementary
#2A2099 #996720 #539920
monochromatic
#0E0B34 #1C1566 #2A2099 #382BCC #6257DC

Accessibility & contrast

On white

11.90
#2A2099 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2099
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2099#FFFFFF#000000##FFFFFF
##2A20991.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9C
Deuteranopia (green-blind)
#003297
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2099;
/* rgb */ color: rgb(42, 32, 153);
/* oklch */ color: oklch(35.6% 0.184 275.2);
Tailwind
colors: {
  custom: {
    50: '#765eb8',
    500: '#2a2099',
    950: '#000000',
  },
}
SCSS
$custom: #2a2099;
$custom-light: #765eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2099",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 153
  },
  "hsl": {
    "h": 244.959,
    "s": 65.405,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35586,
    "c": 0.18427,
    "h": 275.2
  },
  "luminance": 0.03825
}

Semantic roles & 50–950 ramp

primary
#2A2099
secondary
#B7C055
accent
#E83FDA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A2099

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

Preview Lab → · Contrast checker → · Palette generator →

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