#2A1FA0#2A1FA0

#2A1FA0 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.3% C 0.194 H 274.6°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#2A1FA0
RGBrgb(42, 31, 160)
HSLhsl(245, 68%, 37%)
HSVhsv(245, 81%, 63%)
CMYKcmyk(73.8%, 80.6%, 0%, 37.3%)
CIE-LABlab(23.70, 46.04, -66.72)
CIE-LCHlch(23.70, 81.06, 304.61°)
OKLaboklab(36.25% 0.0155 -0.1929)
OKLCHoklch(36.25% 0.194 274.6)
XYZxyz(7.7879, 4.0095, 33.6144)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1FA0 #95A01F
analogous
#1F55A0 #2A1FA0 #6A1FA0
triadic
#2A1FA0 #A02A1F #1FA02A
tetradic
#2A1FA0 #A01F55 #95A01F #1FA06A
square
#2A1FA0 #A01F55 #95A01F #1FA06A
split-complementary
#2A1FA0 #A06A1F #55A01F
monochromatic
#0F0B39 #1D156D #2A1FA0 #3729D3 #665ADF

Accessibility & contrast

On white

11.65
#2A1FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2A1FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1FA0
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1FA0#FFFFFF#000000##FFFFFF
##2A1FA01.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA4
Deuteranopia (green-blind)
#00329E
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a1fa0;
/* rgb */ color: rgb(42, 31, 160);
/* oklch */ color: oklch(36.3% 0.194 274.6);
Tailwind
colors: {
  custom: {
    50: '#785ebd',
    500: '#2a1fa0',
    950: '#000000',
  },
}
SCSS
$custom: #2a1fa0;
$custom-light: #785ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1fa0",
  "rgb": {
    "r": 42,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 245.116,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36253,
    "c": 0.19357,
    "h": 274.6
  },
  "luminance": 0.0401
}

Semantic roles & 50–950 ramp

primary
#2A1FA0
secondary
#BAC358
accent
#EA3DDC
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A1FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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