#2A2FA1#2A2FA1

#2A2FA1 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.179 H 272.4°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#2A2FA1
RGBrgb(42, 47, 161)
HSLhsl(237, 59%, 40%)
HSVhsv(237, 74%, 63%)
CMYKcmyk(73.9%, 70.8%, 0%, 36.9%)
CIE-LABlab(27.01, 37.34, -61.86)
CIE-LCHlch(27.01, 72.26, 301.12°)
OKLaboklab(38.63% 0.0076 -0.1789)
OKLCHoklch(38.63% 0.179 272.4)
XYZxyz(8.4022, 5.0976, 34.2524)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2FA1 #A19C2A
analogous
#2A6BA1 #2A2FA1 #612AA1
triadic
#2A2FA1 #A12A2F #2FA12A
tetradic
#2A2FA1 #A12A6B #A19C2A #2AA161
square
#2A2FA1 #A12A6B #A19C2A #2AA161
split-complementary
#2A2FA1 #A1612A #6BA12A
monochromatic
#111340 #1D2170 #2A2FA1 #3C42CC #6D71D9

Accessibility & contrast

On white

10.40
#2A2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2A2FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2FA1
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2FA1#FFFFFF#000000##FFFFFF
##2A2FA11.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A4
Deuteranopia (green-blind)
#003A9F
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a2fa1;
/* rgb */ color: rgb(42, 47, 161);
/* oklch */ color: oklch(38.6% 0.179 272.4);
Tailwind
colors: {
  custom: {
    50: '#7668be',
    500: '#2a2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #2a2fa1;
$custom-light: #7668be;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2fa1",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 237.479,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38629,
    "c": 0.17911,
    "h": 272.4
  },
  "luminance": 0.05098
}

Semantic roles & 50–950 ramp

primary
#2A2FA1
secondary
#C0BC67
accent
#DB46E2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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