#2A2885#2A2885

#2A2885 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.150 H 276.1°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#2A2885
RGBrgb(42, 40, 133)
HSLhsl(241, 54%, 34%)
HSVhsv(241, 70%, 52%)
CMYKcmyk(68.4%, 69.9%, 0%, 47.8%)
CIE-LABlab(22.66, 31.83, -51.73)
CIE-LCHlch(22.66, 60.74, 301.61°)
OKLaboklab(34.66% 0.016 -0.1493)
OKLCHoklch(34.66% 0.15 276.1)
XYZxyz(5.9459, 3.7028, 22.5871)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2885 #838528
analogous
#285585 #2A2885 #592885
triadic
#2A2885 #852A28 #28852A
tetradic
#2A2885 #852855 #838528 #288559
square
#2A2885 #852855 #838528 #288559
split-complementary
#2A2885 #855928 #558528
monochromatic
#0C0C27 #1B1A56 #2A2885 #3936B4 #5D5ACD

Accessibility & contrast

On white

12.06
#2A2885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2A2885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2885
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2885#FFFFFF#000000##FFFFFF
##2A28851.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003283
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2885;
/* rgb */ color: rgb(42, 40, 133);
/* oklch */ color: oklch(34.7% 0.150 276.1);
Tailwind
colors: {
  custom: {
    50: '#7062a9',
    500: '#2a2885',
    950: '#000000',
  },
}
SCSS
$custom: #2a2885;
$custom-light: #7062a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2885",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 133
  },
  "hsl": {
    "h": 241.29,
    "s": 53.757,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34662,
    "c": 0.1502,
    "h": 276.1
  },
  "luminance": 0.03703
}

Semantic roles & 50–950 ramp

primary
#2A2885
secondary
#B1B356
accent
#DD4BDA
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #2A2885

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

Preview Lab → · Contrast checker → · Palette generator →

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