#2A1F72#2A1F72

#2A1F72 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.135 H 281.2°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#2A1F72
RGBrgb(42, 31, 114)
HSLhsl(248, 57%, 28%)
HSVhsv(248, 73%, 45%)
CMYKcmyk(63.2%, 72.8%, 0%, 55.3%)
CIE-LABlab(18.74, 30.87, -46.07)
CIE-LCHlch(18.74, 55.46, 303.83°)
OKLaboklab(31.28% 0.0263 -0.1328)
OKLCHoklch(31.28% 0.135 281.2)
XYZxyz(4.4811, 2.6868, 16.1988)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1F72 #67721F
analogous
#1F3D72 #2A1F72 #531F72
triadic
#2A1F72 #722A1F #1F722A
tetradic
#2A1F72 #721F3D #67721F #1F7253
square
#2A1F72 #721F3D #67721F #1F7253
split-complementary
#2A1F72 #72531F #3D721F
monochromatic
#090718 #181242 #2A1F72 #3C2CA2 #5340CB

Accessibility & contrast

On white

13.66
#2A1F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2A1F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1F72
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1F72#FFFFFF#000000##FFFFFF
##2A1F721.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#003546
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a1f72;
/* rgb */ color: rgb(42, 31, 114);
/* oklch */ color: oklch(31.3% 0.135 281.2);
Tailwind
colors: {
  custom: {
    50: '#6d5c9b',
    500: '#2a1f72',
    950: '#000000',
  },
}
SCSS
$custom: #2a1f72;
$custom-light: #6d5c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1f72",
  "rgb": {
    "r": 42,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 247.952,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31278,
    "c": 0.13534,
    "h": 281.2
  },
  "luminance": 0.02687
}

Semantic roles & 50–950 ramp

primary
#2A1F72
secondary
#99A647
accent
#E047CC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2A1F72

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

Preview Lab → · Contrast checker → · Palette generator →

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