#2A1D98#2A1D98

#2A1D98 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.1% C 0.186 H 275.7°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#2A1D98
RGBrgb(42, 29, 152)
HSLhsl(246, 68%, 35%)
HSVhsv(246, 81%, 60%)
CMYKcmyk(72.4%, 80.9%, 0%, 40.4%)
CIE-LABlab(22.43, 44.51, -63.92)
CIE-LCHlch(22.43, 77.89, 304.85°)
OKLaboklab(35.1% 0.0184 -0.1848)
OKLCHoklch(35.1% 0.186 275.7)
XYZxyz(7.0598, 3.6373, 30.0297)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D98 #8B981D
analogous
#1D4E98 #2A1D98 #671D98
triadic
#2A1D98 #982A1D #1D982A
tetradic
#2A1D98 #981D4E #8B981D #1D9867
square
#2A1D98 #981D4E #8B981D #1D9867
split-complementary
#2A1D98 #98671D #4E981D
monochromatic
#0E0931 #1C1365 #2A1D98 #3827CB #6052DE

Accessibility & contrast

On white

12.16
#2A1D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2A1D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1D98
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D98#FFFFFF#000000##FFFFFF
##2A1D981.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9B
Deuteranopia (green-blind)
#003096
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a1d98;
/* rgb */ color: rgb(42, 29, 152);
/* oklch */ color: oklch(35.1% 0.186 275.7);
Tailwind
colors: {
  custom: {
    50: '#765db8',
    500: '#2a1d98',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d98;
$custom-light: #765db8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d98",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 246.341,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.351,
    "c": 0.18571,
    "h": 275.7
  },
  "luminance": 0.03638
}

Semantic roles & 50–950 ramp

primary
#2A1D98
secondary
#B5C150
accent
#EB3DD8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1D98

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

Preview Lab → · Contrast checker → · Palette generator →

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