#2A2271#2A2271

#2A2271 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.130 H 280.5°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#2A2271
RGBrgb(42, 34, 113)
HSLhsl(246, 54%, 29%)
HSVhsv(246, 70%, 44%)
CMYKcmyk(62.8%, 69.9%, 0%, 55.7%)
CIE-LABlab(19.34, 28.63, -44.45)
CIE-LCHlch(19.34, 52.87, 302.79°)
OKLaboklab(31.68% 0.0238 -0.128)
OKLCHoklch(31.68% 0.13 280.5)
XYZxyz(4.5066, 2.8282, 15.9280)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2271 #697122
analogous
#224271 #2A2271 #522271
triadic
#2A2271 #712A22 #22712A
tetradic
#2A2271 #712242 #697122 #227152
square
#2A2271 #712242 #697122 #227152
split-complementary
#2A2271 #715222 #427122
monochromatic
#090718 #191442 #2A2271 #3B30A0 #5346C7

Accessibility & contrast

On white

13.41
#2A2271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2A2271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2271
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2271#FFFFFF#000000##FFFFFF
##2A22711.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#003646
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a2271;
/* rgb */ color: rgb(42, 34, 113);
/* oklch */ color: oklch(31.7% 0.130 280.5);
Tailwind
colors: {
  custom: {
    50: '#6d5e9b',
    500: '#2a2271',
    950: '#000000',
  },
}
SCSS
$custom: #2a2271;
$custom-light: #6d5e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2271",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 246.076,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31679,
    "c": 0.13018,
    "h": 280.5
  },
  "luminance": 0.02829
}

Semantic roles & 50–950 ramp

primary
#2A2271
secondary
#9BA44A
accent
#DD4BCE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2A2271

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

Preview Lab → · Contrast checker → · Palette generator →

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