#2A2FB5#2A2FB5

#2A2FB5 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 40.7% C 0.204 H 271.3°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#2A2FB5
RGBrgb(42, 47, 181)
HSLhsl(238, 62%, 44%)
HSVhsv(238, 77%, 71%)
CMYKcmyk(76.8%, 74%, 0%, 29%)
CIE-LABlab(29.06, 44.24, -70.51)
CIE-LCHlch(29.06, 83.24, 302.10°)
OKLaboklab(40.71% 0.0046 -0.2041)
OKLCHoklch(40.71% 0.204 271.3)
XYZxyz(10.3090, 5.8603, 44.2949)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2FB5 #B5B02A
analogous
#2A74B5 #2A2FB5 #6A2AB5
triadic
#2A2FB5 #B52A2F #2FB52A
tetradic
#2A2FB5 #B52A74 #B5B02A #2AB56A
square
#2A2FB5 #B52A74 #B5B02A #2AB56A
split-complementary
#2A2FB5 #B56A2A #74B52A
monochromatic
#131552 #1E2283 #2A2FB5 #484DD4 #797DE0

Accessibility & contrast

On white

9.67
#2A2FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2A2FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2FB5
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2FB5#FFFFFF#000000##FFFFFF
##2A2FB51.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB9
Deuteranopia (green-blind)
#003EB3
Tritanopia (blue-blind)
#00566F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a2fb5;
/* rgb */ color: rgb(42, 47, 181);
/* oklch */ color: oklch(40.7% 0.204 271.3);
Tailwind
colors: {
  custom: {
    50: '#7b69cc',
    500: '#2a2fb5',
    950: '#000000',
  },
}
SCSS
$custom: #2a2fb5;
$custom-light: #7b69cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2fb5",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 237.842,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40706,
    "c": 0.20419,
    "h": 271.3
  },
  "luminance": 0.05861
}

Semantic roles & 50–950 ramp

primary
#2A2FB5
secondary
#C8C573
accent
#E042E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2A2FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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