#2A1989#2A1989

#2A1989 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.9% C 0.171 H 278.2°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#2A1989
RGBrgb(42, 25, 137)
HSLhsl(249, 69%, 32%)
HSVhsv(249, 82%, 54%)
CMYKcmyk(69.3%, 81.8%, 0%, 46.3%)
CIE-LABlab(20.02, 41.79, -58.60)
CIE-LCHlch(20.02, 71.98, 305.49°)
OKLaboklab(32.91% 0.0245 -0.1693)
OKLCHoklch(32.91% 0.171 278.2)
XYZxyz(5.8164, 2.9931, 23.9333)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1989 #788919
analogous
#194089 #2A1989 #621989
triadic
#2A1989 #892A19 #19892A
tetradic
#2A1989 #891940 #788919 #198962
square
#2A1989 #891940 #788919 #198962
split-complementary
#2A1989 #896219 #408919
monochromatic
#0A0621 #1A1055 #2A1989 #3A22BD #5840DC

Accessibility & contrast

On white

13.13
#2A1989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2A1989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1989
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1989#FFFFFF#000000##FFFFFF
##2A19891.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002C87
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a1989;
/* rgb */ color: rgb(42, 25, 137);
/* oklch */ color: oklch(32.9% 0.171 278.2);
Tailwind
colors: {
  custom: {
    50: '#7359ad',
    500: '#2a1989',
    950: '#000000',
  },
}
SCSS
$custom: #2a1989;
$custom-light: #7359ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1989",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 249.107,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32912,
    "c": 0.17106,
    "h": 278.2
  },
  "luminance": 0.02994
}

Semantic roles & 50–950 ramp

primary
#2A1989
secondary
#AABC41
accent
#EC3CD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1989

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

Preview Lab → · Contrast checker → · Palette generator →

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