#2A2185#2A2185

#2A2185 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.158 H 277.6°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#2A2185
RGBrgb(42, 33, 133)
HSLhsl(245, 60%, 33%)
HSVhsv(245, 75%, 52%)
CMYKcmyk(68.4%, 75.2%, 0%, 47.8%)
CIE-LABlab(21.11, 36.13, -54.29)
CIE-LCHlch(21.11, 65.22, 303.64°)
OKLaboklab(33.55% 0.0209 -0.1568)
OKLCHoklch(33.55% 0.158 277.6)
XYZxyz(5.7310, 3.2729, 22.5155)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2185 #7C8521
analogous
#214A85 #2A2185 #5C2185
triadic
#2A2185 #852A21 #21852A
tetradic
#2A2185 #85214A #7C8521 #21855C
square
#2A2185 #85214A #7C8521 #21855C
split-complementary
#2A2185 #855C21 #4A8521
monochromatic
#0B0923 #1B1554 #2A2185 #392DB6 #594DD3

Accessibility & contrast

On white

12.69
#2A2185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2A2185 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2185
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2185#FFFFFF#000000##FFFFFF
##2A21851.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003788
Deuteranopia (green-blind)
#002E83
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a2185;
/* rgb */ color: rgb(42, 33, 133);
/* oklch */ color: oklch(33.5% 0.158 277.6);
Tailwind
colors: {
  custom: {
    50: '#715eaa',
    500: '#2a2185',
    950: '#000000',
  },
}
SCSS
$custom: #2a2185;
$custom-light: #715eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2185",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 133
  },
  "hsl": {
    "h": 245.4,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33547,
    "c": 0.1582,
    "h": 277.6
  },
  "luminance": 0.03273
}

Semantic roles & 50–950 ramp

primary
#2A2185
secondary
#ADB64C
accent
#E344D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A2185

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

Preview Lab → · Contrast checker → · Palette generator →

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