#2A25C1#2A25C1

#2A25C1 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.7% C 0.227 H 271.4°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#2A25C1
RGBrgb(42, 37, 193)
HSLhsl(242, 68%, 45%)
HSVhsv(242, 81%, 76%)
CMYKcmyk(78.2%, 80.8%, 0%, 24.3%)
CIE-LABlab(28.55, 53.39, -78.45)
CIE-LCHlch(28.55, 94.90, 304.24°)
OKLaboklab(40.74% 0.0057 -0.2271)
OKLCHoklch(40.74% 0.227 271.4)
XYZxyz(11.2388, 5.6644, 50.9427)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A25C1 #BCC125
analogous
#256EC1 #2A25C1 #7825C1
triadic
#2A25C1 #C12A25 #25C12A
tetradic
#2A25C1 #C1256E #BCC125 #25C178
square
#2A25C1 #C1256E #BCC125 #25C178
split-complementary
#2A25C1 #C17825 #6EC125
monochromatic
#14115A #1F1B8E #2A25C1 #4C47DC #7E7BE6

Accessibility & contrast

On white

9.84
#2A25C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2A25C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A25C1
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A25C1#FFFFFF#000000##FFFFFF
##2A25C11.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BC5
Deuteranopia (green-blind)
#003BBE
Tritanopia (blue-blind)
#005674
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a25c1;
/* rgb */ color: rgb(42, 37, 193);
/* oklch */ color: oklch(40.7% 0.227 271.4);
Tailwind
colors: {
  custom: {
    50: '#7f64d5',
    500: '#2a25c1',
    950: '#000000',
  },
}
SCSS
$custom: #2a25c1;
$custom-light: #7f64d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a25c1",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 193
  },
  "hsl": {
    "h": 241.923,
    "s": 67.826,
    "l": 45.098
  },
  "oklch": {
    "l": 0.40739,
    "c": 0.22714,
    "h": 271.4
  },
  "luminance": 0.05666
}

Semantic roles & 50–950 ramp

primary
#2A25C1
secondary
#CBCE74
accent
#EB3DE5
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2A25C1

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

Preview Lab → · Contrast checker → · Palette generator →

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