#2A2FA9#2A2FA9

#2A2FA9 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.4% C 0.189 H 272.0°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#2A2FA9
RGBrgb(42, 47, 169)
HSLhsl(238, 60%, 41%)
HSVhsv(238, 75%, 66%)
CMYKcmyk(75.1%, 72.2%, 0%, 33.7%)
CIE-LABlab(27.82, 40.13, -65.38)
CIE-LCHlch(27.82, 76.71, 301.55°)
OKLaboklab(39.45% 0.0065 -0.1892)
OKLCHoklch(39.45% 0.189 272)
XYZxyz(9.1304, 5.3889, 38.0874)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2FA9 #A9A42A
analogous
#2A6FA9 #2A2FA9 #652AA9
triadic
#2A2FA9 #A92A2F #2FA92A
tetradic
#2A2FA9 #A92A6F #A9A42A #2AA965
square
#2A2FA9 #A92A6F #A9A42A #2AA965
split-complementary
#2A2FA9 #A9652A #6FA92A
monochromatic
#121447 #1E2178 #2A2FA9 #4146D0 #7276DC

Accessibility & contrast

On white

10.11
#2A2FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2A2FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2FA9
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2FA9#FFFFFF#000000##FFFFFF
##2A2FA91.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AD
Deuteranopia (green-blind)
#003BA7
Tritanopia (blue-blind)
#005169
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a2fa9;
/* rgb */ color: rgb(42, 47, 169);
/* oklch */ color: oklch(39.4% 0.189 272.0);
Tailwind
colors: {
  custom: {
    50: '#7868c4',
    500: '#2a2fa9',
    950: '#000000',
  },
}
SCSS
$custom: #2a2fa9;
$custom-light: #7868c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2fa9",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 237.638,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39449,
    "c": 0.18931,
    "h": 272
  },
  "luminance": 0.0539
}

Semantic roles & 50–950 ramp

primary
#2A2FA9
secondary
#C3C06C
accent
#DD44E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #2A2FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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