#2A2485#2A2485

#2A2485 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.155 H 277.0°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#2A2485
RGBrgb(42, 36, 133)
HSLhsl(244, 57%, 33%)
HSVhsv(244, 73%, 52%)
CMYKcmyk(68.4%, 72.9%, 0%, 47.8%)
CIE-LABlab(21.75, 34.33, -53.23)
CIE-LCHlch(21.75, 63.34, 302.82°)
OKLaboklab(34.01% 0.0189 -0.1537)
OKLCHoklch(34.01% 0.155 277)
XYZxyz(5.8180, 3.4469, 22.5445)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2485 #7F8524
analogous
#244E85 #2A2485 #5A2485
triadic
#2A2485 #852A24 #24852A
tetradic
#2A2485 #85244E #7F8524 #24855A
square
#2A2485 #85244E #7F8524 #24855A
split-complementary
#2A2485 #855A24 #4E8524
monochromatic
#0C0A25 #1B1755 #2A2485 #3931B5 #5B53D0

Accessibility & contrast

On white

12.43
#2A2485 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2A2485 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2485
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2485#FFFFFF#000000##FFFFFF
##2A24851.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003888
Deuteranopia (green-blind)
#003083
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a2485;
/* rgb */ color: rgb(42, 36, 133);
/* oklch */ color: oklch(34.0% 0.155 277.0);
Tailwind
colors: {
  custom: {
    50: '#7160a9',
    500: '#2a2485',
    950: '#000000',
  },
}
SCSS
$custom: #2a2485;
$custom-light: #7160a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2485",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 133
  },
  "hsl": {
    "h": 243.711,
    "s": 57.396,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34007,
    "c": 0.15488,
    "h": 277
  },
  "luminance": 0.03447
}

Semantic roles & 50–950 ramp

primary
#2A2485
secondary
#AEB450
accent
#E147D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2A2485

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

Preview Lab → · Contrast checker → · Palette generator →

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