#2A2FB4#2A2FB4

#2A2FB4 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.6% C 0.203 H 271.3°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#2A2FB4
RGBrgb(42, 47, 180)
HSLhsl(238, 62%, 44%)
HSVhsv(238, 77%, 71%)
CMYKcmyk(76.7%, 73.9%, 0%, 29.4%)
CIE-LABlab(28.95, 43.90, -70.09)
CIE-LCHlch(28.95, 82.70, 302.06°)
OKLaboklab(40.6% 0.0048 -0.2029)
OKLCHoklch(40.6% 0.203 271.3)
XYZxyz(10.2068, 5.8195, 43.7565)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2FB4 #B4AF2A
analogous
#2A74B4 #2A2FB4 #6A2AB4
triadic
#2A2FB4 #B42A2F #2FB42A
tetradic
#2A2FB4 #B42A74 #B4AF2A #2AB46A
square
#2A2FB4 #B42A74 #B4AF2A #2AB46A
split-complementary
#2A2FB4 #B46A2A #74B42A
monochromatic
#131551 #1E2282 #2A2FB4 #474CD4 #797CE0

Accessibility & contrast

On white

9.70
#2A2FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2A2FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2FB4
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2FB4#FFFFFF#000000##FFFFFF
##2A2FB41.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2fb4;
/* rgb */ color: rgb(42, 47, 180);
/* oklch */ color: oklch(40.6% 0.203 271.3);
Tailwind
colors: {
  custom: {
    50: '#7b69cc',
    500: '#2a2fb4',
    950: '#000000',
  },
}
SCSS
$custom: #2a2fb4;
$custom-light: #7b69cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2fb4",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 237.826,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.406,
    "c": 0.20297,
    "h": 271.3
  },
  "luminance": 0.05821
}

Semantic roles & 50–950 ramp

primary
#2A2FB4
secondary
#C8C472
accent
#DF43E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2A2FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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