#2A2FA3#2A2FA3

#2A2FA3 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.182 H 272.3°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#2A2FA3
RGBrgb(42, 47, 163)
HSLhsl(238, 59%, 40%)
HSVhsv(238, 74%, 64%)
CMYKcmyk(74.2%, 71.2%, 0%, 36.1%)
CIE-LABlab(27.21, 38.04, -62.75)
CIE-LCHlch(27.21, 73.38, 301.23°)
OKLaboklab(38.83% 0.0073 -0.1815)
OKLCHoklch(38.83% 0.182 272.3)
XYZxyz(8.5800, 5.1687, 35.1887)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2FA3 #A39E2A
analogous
#2A6BA3 #2A2FA3 #622AA3
triadic
#2A2FA3 #A32A2F #2FA32A
tetradic
#2A2FA3 #A32A6B #A39E2A #2AA362
square
#2A2FA3 #A32A6B #A39E2A #2AA362
split-complementary
#2A2FA3 #A3622A #6BA32A
monochromatic
#111342 #1D2172 #2A2FA3 #3D43CD #6E72DA

Accessibility & contrast

On white

10.32
#2A2FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2A2FA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2FA3
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2FA3#FFFFFF#000000##FFFFFF
##2A2FA31.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A6
Deuteranopia (green-blind)
#003AA1
Tritanopia (blue-blind)
#004F65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a2fa3;
/* rgb */ color: rgb(42, 47, 163);
/* oklch */ color: oklch(38.8% 0.182 272.3);
Tailwind
colors: {
  custom: {
    50: '#7768bf',
    500: '#2a2fa3',
    950: '#000000',
  },
}
SCSS
$custom: #2a2fa3;
$custom-light: #7768bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2fa3",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 237.521,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38833,
    "c": 0.18169,
    "h": 272.3
  },
  "luminance": 0.0517
}

Semantic roles & 50–950 ramp

primary
#2A2FA3
secondary
#C0BD68
accent
#DC46E2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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