#2A2FA5#2A2FA5

#2A2FA5 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.0% C 0.184 H 272.2°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#2A2FA5
RGBrgb(42, 47, 165)
HSLhsl(238, 59%, 41%)
HSVhsv(238, 75%, 65%)
CMYKcmyk(74.5%, 71.5%, 0%, 35.3%)
CIE-LABlab(27.41, 38.74, -63.63)
CIE-LCHlch(27.41, 74.50, 301.34°)
OKLaboklab(39.04% 0.007 -0.1841)
OKLCHoklch(39.04% 0.184 272.2)
XYZxyz(8.7606, 5.2410, 36.1399)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2FA5 #A5A02A
analogous
#2A6CA5 #2A2FA5 #622AA5
triadic
#2A2FA5 #A52A2F #2FA52A
tetradic
#2A2FA5 #A52A6C #A5A02A #2AA562
square
#2A2FA5 #A52A6C #A5A02A #2AA562
split-complementary
#2A2FA5 #A5622A #6CA52A
monochromatic
#111343 #1E2174 #2A2FA5 #3E44CE #6F73DA

Accessibility & contrast

On white

10.25
#2A2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2A2FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2FA5
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2FA5#FFFFFF#000000##FFFFFF
##2A2FA51.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#003BA3
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a2fa5;
/* rgb */ color: rgb(42, 47, 165);
/* oklch */ color: oklch(39.0% 0.184 272.2);
Tailwind
colors: {
  custom: {
    50: '#7768c1',
    500: '#2a2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #2a2fa5;
$custom-light: #7768c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2fa5",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 237.561,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39037,
    "c": 0.18423,
    "h": 272.2
  },
  "luminance": 0.05242
}

Semantic roles & 50–950 ramp

primary
#2A2FA5
secondary
#C1BE69
accent
#DC45E3
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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