#2A2285#2A2285

#2A2285 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.157 H 277.4°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#2A2285
RGBrgb(42, 34, 133)
HSLhsl(245, 59%, 33%)
HSVhsv(245, 74%, 52%)
CMYKcmyk(68.4%, 74.4%, 0%, 47.8%)
CIE-LABlab(21.32, 35.54, -53.95)
CIE-LCHlch(21.32, 64.60, 303.37°)
OKLaboklab(33.7% 0.0203 -0.1558)
OKLCHoklch(33.7% 0.157 277.4)
XYZxyz(5.7591, 3.3293, 22.5249)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2285 #7D8522
analogous
#224C85 #2A2285 #5B2285
triadic
#2A2285 #852A22 #22852A
tetradic
#2A2285 #85224C #7D8522 #22855B
square
#2A2285 #85224C #7D8522 #22855B
split-complementary
#2A2285 #855B22 #4C8522
monochromatic
#0B0924 #1B1654 #2A2285 #392EB6 #5A4FD2

Accessibility & contrast

On white

12.61
#2A2285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2A2285 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2285
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2285#FFFFFF#000000##FFFFFF
##2A22851.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2285;
/* rgb */ color: rgb(42, 34, 133);
/* oklch */ color: oklch(33.7% 0.157 277.4);
Tailwind
colors: {
  custom: {
    50: '#715eaa',
    500: '#2a2285',
    950: '#000000',
  },
}
SCSS
$custom: #2a2285;
$custom-light: #715eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2285",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 133
  },
  "hsl": {
    "h": 244.848,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33697,
    "c": 0.15711,
    "h": 277.4
  },
  "luminance": 0.0333
}

Semantic roles & 50–950 ramp

primary
#2A2285
secondary
#ADB64D
accent
#E245D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A2285

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

Preview Lab → · Contrast checker → · Palette generator →

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