#2A1895#2A1895

#2A1895 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.2% C 0.186 H 276.6°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#2A1895
RGBrgb(42, 24, 149)
HSLhsl(249, 72%, 34%)
HSVhsv(249, 84%, 58%)
CMYKcmyk(71.8%, 83.9%, 0%, 41.6%)
CIE-LABlab(21.26, 45.98, -64.01)
CIE-LCHlch(21.26, 78.81, 305.69°)
OKLaboklab(34.19% 0.0213 -0.185)
OKLCHoklch(34.19% 0.186 276.6)
XYZxyz(6.7045, 3.3148, 28.7144)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1895 #839518
analogous
#184595 #2A1895 #691895
triadic
#2A1895 #952A18 #18952A
tetradic
#2A1895 #951845 #839518 #189569
square
#2A1895 #951845 #839518 #189569
split-complementary
#2A1895 #956918 #459518
monochromatic
#0C072C #1B1060 #2A1895 #3920CA #5D46E1

Accessibility & contrast

On white

12.63
#2A1895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2A1895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1895
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1895#FFFFFF#000000##FFFFFF
##2A18951.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003898
Deuteranopia (green-blind)
#002E93
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a1895;
/* rgb */ color: rgb(42, 24, 149);
/* oklch */ color: oklch(34.2% 0.186 276.6);
Tailwind
colors: {
  custom: {
    50: '#765ab5',
    500: '#2a1895',
    950: '#000000',
  },
}
SCSS
$custom: #2a1895;
$custom-light: #765ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1895",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 248.64,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34187,
    "c": 0.1862,
    "h": 276.6
  },
  "luminance": 0.03315
}

Semantic roles & 50–950 ramp

primary
#2A1895
secondary
#B1C246
accent
#EF39D5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1895

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

Preview Lab → · Contrast checker → · Palette generator →

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