#2A25A6#2A25A6

#2A25A6 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.7% C 0.195 H 273.4°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#2A25A6
RGBrgb(42, 37, 166)
HSLhsl(242, 64%, 40%)
HSVhsv(242, 78%, 65%)
CMYKcmyk(74.7%, 77.7%, 0%, 34.9%)
CIE-LABlab(25.47, 44.84, -67.44)
CIE-LCHlch(25.47, 80.99, 303.62°)
OKLaboklab(37.69% 0.0117 -0.1951)
OKLCHoklch(37.69% 0.195 273.4)
XYZxyz(8.4971, 4.5677, 36.5028)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A25A6 #A1A625
analogous
#2560A6 #2A25A6 #6B25A6
triadic
#2A25A6 #A62A25 #25A62A
tetradic
#2A25A6 #A62560 #A1A625 #25A66B
square
#2A25A6 #A62560 #A1A625 #25A66B
split-complementary
#2A25A6 #A66B25 #60A625
monochromatic
#110F42 #1D1A74 #2A25A6 #3C36D2 #6D68DD

Accessibility & contrast

On white

10.97
#2A25A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2A25A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A25A6
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A25A6#FFFFFF#000000##FFFFFF
##2A25A61.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AA
Deuteranopia (green-blind)
#0036A4
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a25a6;
/* rgb */ color: rgb(42, 37, 166);
/* oklch */ color: oklch(37.7% 0.195 273.4);
Tailwind
colors: {
  custom: {
    50: '#7962c2',
    500: '#2a25a6',
    950: '#000000',
  },
}
SCSS
$custom: #2a25a6;
$custom-light: #7962c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a25a6",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 166
  },
  "hsl": {
    "h": 242.326,
    "s": 63.547,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37686,
    "c": 0.19549,
    "h": 273.4
  },
  "luminance": 0.04569
}

Semantic roles & 50–950 ramp

primary
#2A25A6
secondary
#C0C364
accent
#E741E0
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2A25A6

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

Preview Lab → · Contrast checker → · Palette generator →

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