#2A1894#2A1894

#2A1894 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.1% C 0.185 H 276.7°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#2A1894
RGBrgb(42, 24, 148)
HSLhsl(249, 72%, 34%)
HSVhsv(249, 84%, 58%)
CMYKcmyk(71.6%, 83.8%, 0%, 42%)
CIE-LABlab(21.14, 45.67, -63.59)
CIE-LCHlch(21.14, 78.29, 305.69°)
OKLaboklab(34.07% 0.0216 -0.1838)
OKLCHoklch(34.07% 0.185 276.7)
XYZxyz(6.6250, 3.2830, 28.2958)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1894 #829418
analogous
#184494 #2A1894 #681894
triadic
#2A1894 #942A18 #18942A
tetradic
#2A1894 #941844 #829418 #189468
square
#2A1894 #941844 #829418 #189468
split-complementary
#2A1894 #946818 #449418
monochromatic
#0C072B #1B0F5F #2A1894 #3921C9 #5C45E1

Accessibility & contrast

On white

12.68
#2A1894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1894
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1894#FFFFFF#000000##FFFFFF
##2A18941.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003897
Deuteranopia (green-blind)
#002D92
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a1894;
/* rgb */ color: rgb(42, 24, 148);
/* oklch */ color: oklch(34.1% 0.185 276.7);
Tailwind
colors: {
  custom: {
    50: '#755ab5',
    500: '#2a1894',
    950: '#000000',
  },
}
SCSS
$custom: #2a1894;
$custom-light: #755ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1894",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 148
  },
  "hsl": {
    "h": 248.71,
    "s": 72.093,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34069,
    "c": 0.18503,
    "h": 276.7
  },
  "luminance": 0.03284
}

Semantic roles & 50–950 ramp

primary
#2A1894
secondary
#B0C246
accent
#EF39D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1894

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

Preview Lab → · Contrast checker → · Palette generator →

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