#2A2183#2A2183

#2A2183 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.156 H 277.9°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#2A2183
RGBrgb(42, 33, 131)
HSLhsl(246, 60%, 32%)
HSVhsv(246, 75%, 51%)
CMYKcmyk(67.9%, 74.8%, 0%, 48.6%)
CIE-LABlab(20.90, 35.45, -53.38)
CIE-LCHlch(20.90, 64.08, 303.59°)
OKLaboklab(33.34% 0.0214 -0.1541)
OKLCHoklch(33.34% 0.156 277.9)
XYZxyz(5.5941, 3.2182, 21.7947)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2183 #7A8321
analogous
#214983 #2A2183 #5B2183
triadic
#2A2183 #832A21 #21832A
tetradic
#2A2183 #832149 #7A8321 #21835B
square
#2A2183 #832149 #7A8321 #21835B
split-complementary
#2A2183 #835B21 #498321
monochromatic
#0B0821 #1A1552 #2A2183 #3A2DB4 #594CD2

Accessibility & contrast

On white

12.78
#2A2183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2A2183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2183
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2183#FFFFFF#000000##FFFFFF
##2A21831.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003686
Deuteranopia (green-blind)
#002E81
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a2183;
/* rgb */ color: rgb(42, 33, 131);
/* oklch */ color: oklch(33.3% 0.156 277.9);
Tailwind
colors: {
  custom: {
    50: '#715ea8',
    500: '#2a2183',
    950: '#000000',
  },
}
SCSS
$custom: #2a2183;
$custom-light: #715ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2183",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 131
  },
  "hsl": {
    "h": 245.51,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33336,
    "c": 0.15561,
    "h": 277.9
  },
  "luminance": 0.03219
}

Semantic roles & 50–950 ramp

primary
#2A2183
secondary
#ABB54B
accent
#E345D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A2183

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

Preview Lab → · Contrast checker → · Palette generator →

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