#2A1790#2A1790

#2A1790 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.5% C 0.181 H 277.4°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#2A1790
RGBrgb(42, 23, 144)
HSLhsl(249, 72%, 33%)
HSVhsv(249, 84%, 56%)
CMYKcmyk(70.8%, 84%, 0%, 43.5%)
CIE-LABlab(20.51, 44.91, -62.16)
CIE-LCHlch(20.51, 76.68, 305.85°)
OKLaboklab(33.49% 0.0233 -0.1796)
OKLCHoklch(33.49% 0.181 277.4)
XYZxyz(6.2936, 3.1181, 26.6503)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1790 #7D9017
analogous
#174190 #2A1790 #661790
triadic
#2A1790 #902A17 #17902A
tetradic
#2A1790 #901741 #7D9017 #179066
square
#2A1790 #901741 #7D9017 #179066
split-complementary
#2A1790 #906617 #419017
monochromatic
#0B0626 #1B0F5B #2A1790 #391FC5 #5A41E1

Accessibility & contrast

On white

12.93
#2A1790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2A1790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1790
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1790#FFFFFF#000000##FFFFFF
##2A17901.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003693
Deuteranopia (green-blind)
#002C8E
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a1790;
/* rgb */ color: rgb(42, 23, 144);
/* oklch */ color: oklch(33.5% 0.181 277.4);
Tailwind
colors: {
  custom: {
    50: '#7559b2',
    500: '#2a1790',
    950: '#000000',
  },
}
SCSS
$custom: #2a1790;
$custom-light: #7559b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1790",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 249.421,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33494,
    "c": 0.18108,
    "h": 277.4
  },
  "luminance": 0.03119
}

Semantic roles & 50–950 ramp

primary
#2A1790
secondary
#ADC142
accent
#EF39D3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1790

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

Preview Lab → · Contrast checker → · Palette generator →

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