#2A1B90#2A1B90

#2A1B90 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.178 H 277.0°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#2A1B90
RGBrgb(42, 27, 144)
HSLhsl(248, 68%, 34%)
HSVhsv(248, 81%, 56%)
CMYKcmyk(70.8%, 81.3%, 0%, 43.5%)
CIE-LABlab(21.17, 42.99, -61.07)
CIE-LCHlch(21.17, 74.69, 305.15°)
OKLaboklab(33.95% 0.0215 -0.1765)
OKLCHoklch(33.95% 0.178 277)
XYZxyz(6.3792, 3.2891, 26.6788)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B90 #81901B
analogous
#1B4690 #2A1B90 #641B90
triadic
#2A1B90 #902A1B #1B902A
tetradic
#2A1B90 #901B46 #81901B #1B9064
square
#2A1B90 #901B46 #81901B #1B9064
split-complementary
#2A1B90 #90641B #46901B
monochromatic
#0C0829 #1B115C #2A1B90 #3925C4 #5C49DD

Accessibility & contrast

On white

12.67
#2A1B90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1B90
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B90#FFFFFF#000000##FFFFFF
##2A1B901.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#002E8E
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a1b90;
/* rgb */ color: rgb(42, 27, 144);
/* oklch */ color: oklch(33.9% 0.178 277.0);
Tailwind
colors: {
  custom: {
    50: '#745bb2',
    500: '#2a1b90',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b90;
$custom-light: #745bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b90",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 144
  },
  "hsl": {
    "h": 247.692,
    "s": 68.421,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33948,
    "c": 0.1778,
    "h": 277
  },
  "luminance": 0.0329
}

Semantic roles & 50–950 ramp

primary
#2A1B90
secondary
#AFBF48
accent
#EB3DD5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1B90

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

Preview Lab → · Contrast checker → · Palette generator →

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