#2A2159#2A2159

#2A2159 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.3% C 0.097 H 286.2°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#2A2159
RGBrgb(42, 33, 89)
HSLhsl(250, 46%, 24%)
HSVhsv(250, 63%, 35%)
CMYKcmyk(52.8%, 62.9%, 0%, 65.1%)
CIE-LABlab(16.99, 20.92, -32.50)
CIE-LCHlch(16.99, 38.65, 302.77°)
OKLaboklab(29.31% 0.0269 -0.0929)
OKLCHoklch(29.31% 0.097 286.2)
XYZxyz(3.3013, 2.3011, 9.7195)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2159 #505921
analogous
#213459 #2A2159 #462159
triadic
#2A2159 #592A21 #21592A
tetradic
#2A2159 #592134 #505921 #215946
square
#2A2159 #592134 #505921 #215946
split-complementary
#2A2159 #594621 #345921
monochromatic
#0B0816 #15102C #2A2159 #3F3286 #5442B2

Accessibility & contrast

On white

14.38
#2A2159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2A2159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2159
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2159#FFFFFF#000000##FFFFFF
##2A21591.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5B
Deuteranopia (green-blind)
#002858
Tritanopia (blue-blind)
#1A2E39
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a2159;
/* rgb */ color: rgb(42, 33, 89);
/* oklch */ color: oklch(29.3% 0.097 286.2);
Tailwind
colors: {
  custom: {
    50: '#685c88',
    500: '#2a2159',
    950: '#000000',
  },
}
SCSS
$custom: #2a2159;
$custom-light: #685c88;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2159",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 89
  },
  "hsl": {
    "h": 249.643,
    "s": 45.902,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29311,
    "c": 0.09672,
    "h": 286.2
  },
  "luminance": 0.02301
}

Semantic roles & 50–950 ramp

primary
#2A2159
secondary
#828D49
accent
#D652C0
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040B
muted
#7A797C

Preview Lab

Preview with #2A2159

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

Preview Lab → · Contrast checker → · Palette generator →

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