#2A2DA5#2A2DA5

#2A2DA5 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.7% C 0.186 H 272.5°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#2A2DA5
RGBrgb(42, 45, 165)
HSLhsl(239, 59%, 41%)
HSVhsv(239, 75%, 65%)
CMYKcmyk(74.5%, 72.7%, 0%, 35.3%)
CIE-LABlab(26.97, 39.95, -64.35)
CIE-LCHlch(26.97, 75.74, 301.83°)
OKLaboklab(38.73% 0.0081 -0.1862)
OKLCHoklch(38.73% 0.186 272.5)
XYZxyz(8.6825, 5.0847, 36.1139)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2DA5 #A5A22A
analogous
#2A6AA5 #2A2DA5 #652AA5
triadic
#2A2DA5 #A52A2D #2DA52A
tetradic
#2A2DA5 #A52A6A #A5A22A #2AA565
square
#2A2DA5 #A52A6A #A5A22A #2AA565
split-complementary
#2A2DA5 #A5652A #6AA52A
monochromatic
#111243 #1E2074 #2A2DA5 #3E42CE #6F72DA

Accessibility & contrast

On white

10.41
#2A2DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2A2DA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2DA5
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2DA5#FFFFFF#000000##FFFFFF
##2A2DA51.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#003AA3
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a2da5;
/* rgb */ color: rgb(42, 45, 165);
/* oklch */ color: oklch(38.7% 0.186 272.5);
Tailwind
colors: {
  custom: {
    50: '#7867c1',
    500: '#2a2da5',
    950: '#000000',
  },
}
SCSS
$custom: #2a2da5;
$custom-light: #7867c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2da5",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 165
  },
  "hsl": {
    "h": 238.537,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38725,
    "c": 0.18637,
    "h": 272.5
  },
  "luminance": 0.05086
}

Semantic roles & 50–950 ramp

primary
#2A2DA5
secondary
#C1BF69
accent
#DF45E3
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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