#2A2FA0#2A2FA0

#2A2FA0 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.5% C 0.178 H 272.5°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#2A2FA0
RGBrgb(42, 47, 160)
HSLhsl(237, 58%, 40%)
HSVhsv(237, 74%, 63%)
CMYKcmyk(73.8%, 70.6%, 0%, 37.3%)
CIE-LABlab(26.91, 36.99, -61.42)
CIE-LCHlch(26.91, 71.70, 301.06°)
OKLaboklab(38.53% 0.0077 -0.1777)
OKLCHoklch(38.53% 0.178 272.5)
XYZxyz(8.3144, 5.0625, 33.7899)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2FA0 #A09B2A
analogous
#2A6AA0 #2A2FA0 #602AA0
triadic
#2A2FA0 #A02A2F #2FA02A
tetradic
#2A2FA0 #A02A6A #A09B2A #2AA060
square
#2A2FA0 #A02A6A #A09B2A #2AA060
split-complementary
#2A2FA0 #A0602A #6AA02A
monochromatic
#11133F #1D2170 #2A2FA0 #3C42CC #6C71D8

Accessibility & contrast

On white

10.43
#2A2FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2A2FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2FA0
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2FA0#FFFFFF#000000##FFFFFF
##2A2FA01.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A3
Deuteranopia (green-blind)
#003A9E
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a2fa0;
/* rgb */ color: rgb(42, 47, 160);
/* oklch */ color: oklch(38.5% 0.178 272.5);
Tailwind
colors: {
  custom: {
    50: '#7668bd',
    500: '#2a2fa0',
    950: '#000000',
  },
}
SCSS
$custom: #2a2fa0;
$custom-light: #7668bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2fa0",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 160
  },
  "hsl": {
    "h": 237.458,
    "s": 58.416,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38528,
    "c": 0.17783,
    "h": 272.5
  },
  "luminance": 0.05063
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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