#2A1F90#2A1F90

#2A1F90 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.174 H 276.4°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#2A1F90
RGBrgb(42, 31, 144)
HSLhsl(246, 65%, 34%)
HSVhsv(246, 78%, 56%)
CMYKcmyk(70.8%, 78.5%, 0%, 43.5%)
CIE-LABlab(21.89, 40.91, -59.87)
CIE-LCHlch(21.89, 72.51, 304.34°)
OKLaboklab(34.46% 0.0196 -0.173)
OKLCHoklch(34.46% 0.174 276.4)
XYZxyz(6.4772, 3.4852, 26.7115)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1F90 #85901F
analogous
#1F4D90 #2A1F90 #631F90
triadic
#2A1F90 #902A1F #1F902A
tetradic
#2A1F90 #901F4D #85901F #1F9063
square
#2A1F90 #901F4D #85901F #1F9063
split-complementary
#2A1F90 #90631F #4D901F
monochromatic
#0D092B #1B145E #2A1F90 #392AC2 #5D50D9

Accessibility & contrast

On white

12.37
#2A1F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2A1F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1F90
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1F90#FFFFFF#000000##FFFFFF
##2A1F901.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003993
Deuteranopia (green-blind)
#002F8E
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a1f90;
/* rgb */ color: rgb(42, 31, 144);
/* oklch */ color: oklch(34.5% 0.174 276.4);
Tailwind
colors: {
  custom: {
    50: '#745db2',
    500: '#2a1f90',
    950: '#000000',
  },
}
SCSS
$custom: #2a1f90;
$custom-light: #745db2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1f90",
  "rgb": {
    "r": 42,
    "g": 31,
    "b": 144
  },
  "hsl": {
    "h": 245.841,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34455,
    "c": 0.17415,
    "h": 276.4
  },
  "luminance": 0.03486
}

Semantic roles & 50–950 ramp

primary
#2A1F90
secondary
#B2BC4E
accent
#E840D7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2A1F90

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

Preview Lab → · Contrast checker → · Palette generator →

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