#2A1983#2A1983

#2A1983 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.164 H 279.2°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#2A1983
RGBrgb(42, 25, 131)
HSLhsl(250, 68%, 31%)
HSVhsv(250, 81%, 51%)
CMYKcmyk(67.9%, 80.9%, 0%, 48.6%)
CIE-LABlab(19.33, 39.90, -55.96)
CIE-LCHlch(19.33, 68.72, 305.49°)
OKLaboklab(32.23% 0.0263 -0.1616)
OKLCHoklch(32.23% 0.164 279.2)
XYZxyz(5.3979, 2.8258, 21.7293)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1983 #728319
analogous
#193D83 #2A1983 #5F1983
triadic
#2A1983 #832A19 #19832A
tetradic
#2A1983 #83193D #728319 #19835F
square
#2A1983 #83193D #728319 #19835F
split-complementary
#2A1983 #835F19 #3D8319
monochromatic
#09051C #1A0F50 #2A1983 #3A23B6 #563DDA

Accessibility & contrast

On white

13.42
#2A1983 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2A1983 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1983
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1983#FFFFFF#000000##FFFFFF
##2A19831.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003386
Deuteranopia (green-blind)
#002B81
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a1983;
/* rgb */ color: rgb(42, 25, 131);
/* oklch */ color: oklch(32.2% 0.164 279.2);
Tailwind
colors: {
  custom: {
    50: '#7159a8',
    500: '#2a1983',
    950: '#000000',
  },
}
SCSS
$custom: #2a1983;
$custom-light: #7159a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1983",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 131
  },
  "hsl": {
    "h": 249.623,
    "s": 67.949,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32234,
    "c": 0.16372,
    "h": 279.2
  },
  "luminance": 0.02826
}

Semantic roles & 50–950 ramp

primary
#2A1983
secondary
#A4B741
accent
#EB3DCF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1983

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

Preview Lab → · Contrast checker → · Palette generator →

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