#2A1F7D#2A1F7D

#2A1F7D is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.150 H 279.2°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#2A1F7D
RGBrgb(42, 31, 125)
HSLhsl(247, 60%, 31%)
HSVhsv(247, 75%, 49%)
CMYKcmyk(66.4%, 75.2%, 0%, 51%)
CIE-LABlab(19.85, 34.61, -51.30)
CIE-LCHlch(19.85, 61.88, 304.01°)
OKLaboklab(32.41% 0.024 -0.148)
OKLCHoklch(32.41% 0.15 279.2)
XYZxyz(5.1453, 2.9525, 19.6968)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1F7D #727D1F
analogous
#1F437D #2A1F7D #591F7D
triadic
#2A1F7D #7D2A1F #1F7D2A
tetradic
#2A1F7D #7D1F43 #727D1F #1F7D59
square
#2A1F7D #7D1F43 #727D1F #1F7D59
split-complementary
#2A1F7D #7D591F #437D1F
monochromatic
#09071B #1A134C #2A1F7D #3A2BAE #5645D1

Accessibility & contrast

On white

13.20
#2A1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2A1F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1F7D
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1F7D#FFFFFF#000000##FFFFFF
##2A1F7D1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a1f7d;
/* rgb */ color: rgb(42, 31, 125);
/* oklch */ color: oklch(32.4% 0.150 279.2);
Tailwind
colors: {
  custom: {
    50: '#6f5ca4',
    500: '#2a1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #2a1f7d;
$custom-light: #6f5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1f7d",
  "rgb": {
    "r": 42,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 247.021,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32406,
    "c": 0.14999,
    "h": 279.2
  },
  "luminance": 0.02953
}

Semantic roles & 50–950 ramp

primary
#2A1F7D
secondary
#A4B048
accent
#E344D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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