#2A25A7#2A25A7

#2A25A7 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.8% C 0.197 H 273.3°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#2A25A7
RGBrgb(42, 37, 167)
HSLhsl(242, 64%, 40%)
HSVhsv(242, 78%, 65%)
CMYKcmyk(74.9%, 77.8%, 0%, 34.5%)
CIE-LABlab(25.58, 45.16, -67.87)
CIE-LCHlch(25.58, 81.52, 303.64°)
OKLaboklab(37.8% 0.0114 -0.1964)
OKLCHoklch(37.8% 0.197 273.3)
XYZxyz(8.5891, 4.6045, 36.9878)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A25A7 #A2A725
analogous
#2561A7 #2A25A7 #6B25A7
triadic
#2A25A7 #A72A25 #25A72A
tetradic
#2A25A7 #A72561 #A2A725 #25A76B
square
#2A25A7 #A72561 #A2A725 #25A76B
split-complementary
#2A25A7 #A76B25 #61A725
monochromatic
#110F43 #1D1A75 #2A25A7 #3D37D3 #6D69DE

Accessibility & contrast

On white

10.93
#2A25A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2A25A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A25A7
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A25A7#FFFFFF#000000##FFFFFF
##2A25A71.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AB
Deuteranopia (green-blind)
#0036A5
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a25a7;
/* rgb */ color: rgb(42, 37, 167);
/* oklch */ color: oklch(37.8% 0.197 273.3);
Tailwind
colors: {
  custom: {
    50: '#7962c2',
    500: '#2a25a7',
    950: '#000000',
  },
}
SCSS
$custom: #2a25a7;
$custom-light: #7962c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a25a7",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 167
  },
  "hsl": {
    "h": 242.308,
    "s": 63.725,
    "l": 40
  },
  "oklch": {
    "l": 0.37797,
    "c": 0.19669,
    "h": 273.3
  },
  "luminance": 0.04605
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A25A7

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

Preview Lab → · Contrast checker → · Palette generator →

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