#2A2FA7#2A2FA7

#2A2FA7 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.2% C 0.187 H 272.1°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#2A2FA7
RGBrgb(42, 47, 167)
HSLhsl(238, 60%, 41%)
HSVhsv(238, 75%, 65%)
CMYKcmyk(74.9%, 71.9%, 0%, 34.5%)
CIE-LABlab(27.61, 39.44, -64.50)
CIE-LCHlch(27.61, 75.61, 301.44°)
OKLaboklab(39.24% 0.0068 -0.1867)
OKLCHoklch(39.24% 0.187 272.1)
XYZxyz(8.9441, 5.3144, 37.1061)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2FA7 #A7A22A
analogous
#2A6DA7 #2A2FA7 #632AA7
triadic
#2A2FA7 #A72A2F #2FA72A
tetradic
#2A2FA7 #A72A6D #A7A22A #2AA763
square
#2A2FA7 #A72A6D #A7A22A #2AA763
split-complementary
#2A2FA7 #A7632A #6DA72A
monochromatic
#111345 #1E2176 #2A2FA7 #3F45CF #7075DB

Accessibility & contrast

On white

10.18
#2A2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2A2FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2FA7
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2FA7#FFFFFF#000000##FFFFFF
##2A2FA71.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#003BA5
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a2fa7;
/* rgb */ color: rgb(42, 47, 167);
/* oklch */ color: oklch(39.2% 0.187 272.1);
Tailwind
colors: {
  custom: {
    50: '#7868c2',
    500: '#2a2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #2a2fa7;
$custom-light: #7868c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2fa7",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 237.6,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39242,
    "c": 0.18678,
    "h": 272.1
  },
  "luminance": 0.05315
}

Semantic roles & 50–950 ramp

primary
#2A2FA7
secondary
#C2BF6B
accent
#DD45E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #2A2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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