#2A2FA2#2A2FA2

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

Color values

HEX#2A2FA2
RGBrgb(42, 47, 162)
HSLhsl(238, 59%, 40%)
HSVhsv(238, 74%, 64%)
CMYKcmyk(74.1%, 71%, 0%, 36.5%)
CIE-LABlab(27.11, 37.69, -62.31)
CIE-LCHlch(27.11, 72.82, 301.17°)
OKLaboklab(38.73% 0.0075 -0.1802)
OKLCHoklch(38.73% 0.18 272.4)
XYZxyz(8.4908, 5.1330, 34.7187)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2FA2 #A29D2A
analogous
#2A6BA2 #2A2FA2 #612AA2
triadic
#2A2FA2 #A22A2F #2FA22A
tetradic
#2A2FA2 #A22A6B #A29D2A #2AA261
square
#2A2FA2 #A22A6B #A29D2A #2AA261
split-complementary
#2A2FA2 #A2612A #6BA22A
monochromatic
#111341 #1D2171 #2A2FA2 #3D43CD #6D72D9

Accessibility & contrast

On white

10.36
#2A2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2FA2
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2FA2#FFFFFF#000000##FFFFFF
##2A2FA21.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2fa2;
/* rgb */ color: rgb(42, 47, 162);
/* oklch */ color: oklch(38.7% 0.180 272.4);
Tailwind
colors: {
  custom: {
    50: '#7768bf',
    500: '#2a2fa2',
    950: '#000000',
  },
}
SCSS
$custom: #2a2fa2;
$custom-light: #7768bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2fa2",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 237.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.38731,
    "c": 0.1804,
    "h": 272.4
  },
  "luminance": 0.05134
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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