#2A2470#2A2470

#2A2470 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.126 H 280.0°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#2A2470
RGBrgb(42, 36, 112)
HSLhsl(245, 51%, 29%)
HSVhsv(245, 68%, 44%)
CMYKcmyk(62.5%, 67.9%, 0%, 56.1%)
CIE-LABlab(19.73, 26.98, -43.16)
CIE-LCHlch(19.73, 50.90, 302.01°)
OKLaboklab(31.94% 0.022 -0.1242)
OKLCHoklch(31.94% 0.126 280)
XYZxyz(4.5094, 2.9235, 15.6528)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2470 #6A7024
analogous
#244470 #2A2470 #502470
triadic
#2A2470 #702A24 #24702A
tetradic
#2A2470 #702444 #6A7024 #247050
square
#2A2470 #702444 #6A7024 #247050
split-complementary
#2A2470 #705024 #447024
monochromatic
#090717 #191542 #2A2470 #3B339E #534AC5

Accessibility & contrast

On white

13.25
#2A2470 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2A2470 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2470
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2470#FFFFFF#000000##FFFFFF
##2A24701.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003372
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a2470;
/* rgb */ color: rgb(42, 36, 112);
/* oklch */ color: oklch(31.9% 0.126 280.0);
Tailwind
colors: {
  custom: {
    50: '#6c5f9a',
    500: '#2a2470',
    950: '#000000',
  },
}
SCSS
$custom: #2a2470;
$custom-light: #6c5f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2470",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 112
  },
  "hsl": {
    "h": 244.737,
    "s": 51.351,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31935,
    "c": 0.12615,
    "h": 280
  },
  "luminance": 0.02924
}

Semantic roles & 50–950 ramp

primary
#2A2470
secondary
#9CA34D
accent
#DB4DD0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #2A2470

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

Preview Lab → · Contrast checker → · Palette generator →

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