#2A25A4#2A25A4

#2A25A4 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.5% C 0.193 H 273.6°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#2A25A4
RGBrgb(42, 37, 164)
HSLhsl(242, 63%, 39%)
HSVhsv(242, 77%, 64%)
CMYKcmyk(74.4%, 77.4%, 0%, 35.7%)
CIE-LABlab(25.24, 44.18, -66.60)
CIE-LCHlch(25.24, 79.92, 303.56°)
OKLaboklab(37.46% 0.0121 -0.1927)
OKLCHoklch(37.46% 0.193 273.6)
XYZxyz(8.3150, 4.4949, 35.5441)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A25A4 #9FA425
analogous
#2560A4 #2A25A4 #6A25A4
triadic
#2A25A4 #A42A25 #25A42A
tetradic
#2A25A4 #A42560 #9FA425 #25A46A
square
#2A25A4 #A42560 #9FA425 #25A46A
split-complementary
#2A25A4 #A46A25 #60A425
monochromatic
#100E40 #1D1A72 #2A25A4 #3B35D1 #6B67DD

Accessibility & contrast

On white

11.06
#2A25A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2A25A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A25A4
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A25A4#FFFFFF#000000##FFFFFF
##2A25A41.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A8
Deuteranopia (green-blind)
#0036A2
Tritanopia (blue-blind)
#004B63
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a25a4;
/* rgb */ color: rgb(42, 37, 164);
/* oklch */ color: oklch(37.5% 0.193 273.6);
Tailwind
colors: {
  custom: {
    50: '#7862c0',
    500: '#2a25a4',
    950: '#000000',
  },
}
SCSS
$custom: #2a25a4;
$custom-light: #7862c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a25a4",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 164
  },
  "hsl": {
    "h": 242.362,
    "s": 63.184,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37465,
    "c": 0.19306,
    "h": 273.6
  },
  "luminance": 0.04496
}

Semantic roles & 50–950 ramp

primary
#2A25A4
secondary
#BFC262
accent
#E642E0
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A25A4

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

Preview Lab → · Contrast checker → · Palette generator →

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