#2A25A3#2A25A3

#2A25A3 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.4% C 0.192 H 273.7°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#2A25A3
RGBrgb(42, 37, 163)
HSLhsl(242, 63%, 39%)
HSVhsv(242, 77%, 64%)
CMYKcmyk(74.2%, 77.3%, 0%, 36.1%)
CIE-LABlab(25.13, 43.86, -66.17)
CIE-LCHlch(25.13, 79.39, 303.53°)
OKLaboklab(37.35% 0.0123 -0.1914)
OKLCHoklch(37.35% 0.192 273.7)
XYZxyz(8.2251, 4.4589, 35.0704)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A25A3 #9EA325
analogous
#255FA3 #2A25A3 #6925A3
triadic
#2A25A3 #A32A25 #25A32A
tetradic
#2A25A3 #A3255F #9EA325 #25A369
square
#2A25A3 #A3255F #9EA325 #25A369
split-complementary
#2A25A3 #A36925 #5FA325
monochromatic
#100E3F #1D1A71 #2A25A3 #3A34D1 #6B66DC

Accessibility & contrast

On white

11.10
#2A25A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2A25A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A25A3
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A25A3#FFFFFF#000000##FFFFFF
##2A25A31.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A7
Deuteranopia (green-blind)
#0036A1
Tritanopia (blue-blind)
#004B63
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a25a3;
/* rgb */ color: rgb(42, 37, 163);
/* oklch */ color: oklch(37.4% 0.192 273.7);
Tailwind
colors: {
  custom: {
    50: '#7862c0',
    500: '#2a25a3',
    950: '#000000',
  },
}
SCSS
$custom: #2a25a3;
$custom-light: #7862c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a25a3",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 163
  },
  "hsl": {
    "h": 242.381,
    "s": 63,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37355,
    "c": 0.19184,
    "h": 273.7
  },
  "luminance": 0.0446
}

Semantic roles & 50–950 ramp

primary
#2A25A3
secondary
#BEC262
accent
#E642E0
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A25A3

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

Preview Lab → · Contrast checker → · Palette generator →

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