#2A2170#2A2170

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

Color values

HEX#2A2170
RGBrgb(42, 33, 112)
HSLhsl(247, 54%, 28%)
HSVhsv(247, 71%, 44%)
CMYKcmyk(62.5%, 70.5%, 0%, 56.1%)
CIE-LABlab(19.01, 28.92, -44.34)
CIE-LCHlch(19.01, 52.94, 303.12°)
OKLaboklab(31.41% 0.0248 -0.1277)
OKLCHoklch(31.41% 0.13 281)
XYZxyz(4.4224, 2.7495, 15.6238)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2170 #677021
analogous
#213F70 #2A2170 #512170
triadic
#2A2170 #702A21 #21702A
tetradic
#2A2170 #70213F #677021 #217051
square
#2A2170 #70213F #677021 #217051
split-complementary
#2A2170 #705121 #3F7021
monochromatic
#090718 #181341 #2A2170 #3C2F9F #5344C8

Accessibility & contrast

On white

13.55
#2A2170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2A2170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2170
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2170#FFFFFF#000000##FFFFFF
##2A21701.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003172
Deuteranopia (green-blind)
#002B6E
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a2170;
/* rgb */ color: rgb(42, 33, 112);
/* oklch */ color: oklch(31.4% 0.130 281.0);
Tailwind
colors: {
  custom: {
    50: '#6c5d9a',
    500: '#2a2170',
    950: '#000000',
  },
}
SCSS
$custom: #2a2170;
$custom-light: #6c5d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2170",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 246.835,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31411,
    "c": 0.13009,
    "h": 281
  },
  "luminance": 0.0275
}

Semantic roles & 50–950 ramp

primary
#2A2170
secondary
#99A449
accent
#DE4ACD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2A2170

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

Preview Lab → · Contrast checker → · Palette generator →

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