#2A2160#2A2160

#2A2160 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.9% C 0.107 H 284.4°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#2A2160
RGBrgb(42, 33, 96)
HSLhsl(249, 49%, 25%)
HSVhsv(249, 66%, 38%)
CMYKcmyk(56.3%, 65.6%, 0%, 62.4%)
CIE-LABlab(17.57, 23.35, -36.22)
CIE-LCHlch(17.57, 43.09, 302.81°)
OKLaboklab(29.92% 0.0266 -0.1038)
OKLCHoklch(29.92% 0.107 284.4)
XYZxyz(3.6094, 2.4243, 11.3418)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2160 #576021
analogous
#213860 #2A2160 #492160
triadic
#2A2160 #602A21 #21602A
tetradic
#2A2160 #602138 #576021 #216049
square
#2A2160 #602138 #576021 #216049
split-complementary
#2A2160 #604921 #386021
monochromatic
#0A0817 #161132 #2A2160 #3E318E #5240BB

Accessibility & contrast

On white

14.14
#2A2160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2A2160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2160
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2160#FFFFFF#000000##FFFFFF
##2A21601.0014.141.4814.14
#FFFFFF14.141.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D62
Deuteranopia (green-blind)
#00295F
Tritanopia (blue-blind)
#14303D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a2160;
/* rgb */ color: rgb(42, 33, 96);
/* oklch */ color: oklch(29.9% 0.107 284.4);
Tailwind
colors: {
  custom: {
    50: '#695c8e',
    500: '#2a2160',
    950: '#000000',
  },
}
SCSS
$custom: #2a2160;
$custom-light: #695c8e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2160",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 96
  },
  "hsl": {
    "h": 248.571,
    "s": 48.837,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29919,
    "c": 0.10719,
    "h": 284.4
  },
  "luminance": 0.02424
}

Semantic roles & 50–950 ramp

primary
#2A2160
secondary
#899449
accent
#D84FC5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2A2160

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

Preview Lab → · Contrast checker → · Palette generator →

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