#2A2175#2A2175

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

Color values

HEX#2A2175
RGBrgb(42, 33, 117)
HSLhsl(246, 56%, 29%)
HSVhsv(246, 72%, 46%)
CMYKcmyk(64.1%, 71.8%, 0%, 54.1%)
CIE-LABlab(19.49, 30.66, -46.78)
CIE-LCHlch(19.49, 55.93, 303.24°)
OKLaboklab(31.9% 0.024 -0.1348)
OKLCHoklch(31.9% 0.137 280.1)
XYZxyz(4.7086, 2.8640, 17.1308)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2175 #6C7521
analogous
#214275 #2A2175 #542175
triadic
#2A2175 #752A21 #21752A
tetradic
#2A2175 #752142 #6C7521 #217554
square
#2A2175 #752142 #6C7521 #217554
split-complementary
#2A2175 #755421 #427521
monochromatic
#090718 #191445 #2A2175 #3B2EA5 #5446CB

Accessibility & contrast

On white

13.35
#2A2175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2A2175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2175
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2175#FFFFFF#000000##FFFFFF
##2A21751.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003278
Deuteranopia (green-blind)
#002C73
Tritanopia (blue-blind)
#003748
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a2175;
/* rgb */ color: rgb(42, 33, 117);
/* oklch */ color: oklch(31.9% 0.137 280.1);
Tailwind
colors: {
  custom: {
    50: '#6e5d9e',
    500: '#2a2175',
    950: '#000000',
  },
}
SCSS
$custom: #2a2175;
$custom-light: #6e5d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2175",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 117
  },
  "hsl": {
    "h": 246.429,
    "s": 56,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31904,
    "c": 0.13696,
    "h": 280.1
  },
  "luminance": 0.02864
}

Semantic roles & 50–950 ramp

primary
#2A2175
secondary
#9EA84A
accent
#DF49CF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2A2175

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

Preview Lab → · Contrast checker → · Palette generator →

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