#2A1985#2A1985

#2A1985 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.166 H 278.9°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#2A1985
RGBrgb(42, 25, 133)
HSLhsl(249, 68%, 31%)
HSVhsv(249, 81%, 52%)
CMYKcmyk(68.4%, 81.2%, 0%, 47.8%)
CIE-LABlab(19.56, 40.53, -56.85)
CIE-LCHlch(19.56, 69.82, 305.49°)
OKLaboklab(32.46% 0.0257 -0.1642)
OKLCHoklch(32.46% 0.166 278.9)
XYZxyz(5.5348, 2.8805, 22.4501)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1985 #748519
analogous
#193E85 #2A1985 #601985
triadic
#2A1985 #852A19 #19852A
tetradic
#2A1985 #85193E #748519 #198560
square
#2A1985 #85193E #748519 #198560
split-complementary
#2A1985 #856019 #3E8519
monochromatic
#09061E #1A0F51 #2A1985 #3A23B9 #563EDB

Accessibility & contrast

On white

13.32
#2A1985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2A1985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1985
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1985#FFFFFF#000000##FFFFFF
##2A19851.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003388
Deuteranopia (green-blind)
#002B83
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a1985;
/* rgb */ color: rgb(42, 25, 133);
/* oklch */ color: oklch(32.5% 0.166 278.9);
Tailwind
colors: {
  custom: {
    50: '#7259aa',
    500: '#2a1985',
    950: '#000000',
  },
}
SCSS
$custom: #2a1985;
$custom-light: #7259aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1985",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 249.444,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32459,
    "c": 0.16617,
    "h": 278.9
  },
  "luminance": 0.02881
}

Semantic roles & 50–950 ramp

primary
#2A1985
secondary
#A6B941
accent
#EB3DD0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1985

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

Preview Lab → · Contrast checker → · Palette generator →

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