#2A25A0#2A25A0

#2A25A0 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.0% C 0.188 H 273.9°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#2A25A0
RGBrgb(42, 37, 160)
HSLhsl(242, 62%, 39%)
HSVhsv(242, 77%, 63%)
CMYKcmyk(73.8%, 76.9%, 0%, 37.3%)
CIE-LABlab(24.80, 42.87, -64.90)
CIE-LCHlch(24.80, 77.78, 303.45°)
OKLaboklab(37.03% 0.0129 -0.1877)
OKLCHoklch(37.03% 0.188 273.9)
XYZxyz(7.9595, 4.3526, 33.6716)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A25A0 #9BA025
analogous
#255DA0 #2A25A0 #6725A0
triadic
#2A25A0 #A02A25 #25A02A
tetradic
#2A25A0 #A0255D #9BA025 #25A067
square
#2A25A0 #A0255D #9BA025 #25A067
split-complementary
#2A25A0 #A06725 #5DA025
monochromatic
#100E3D #1D1A6E #2A25A0 #3932D0 #6964DB

Accessibility & contrast

On white

11.23
#2A25A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2A25A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A25A0
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A25A0#FFFFFF#000000##FFFFFF
##2A25A01.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A4
Deuteranopia (green-blind)
#00359E
Tritanopia (blue-blind)
#004961
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a25a0;
/* rgb */ color: rgb(42, 37, 160);
/* oklch */ color: oklch(37.0% 0.188 273.9);
Tailwind
colors: {
  custom: {
    50: '#7762bd',
    500: '#2a25a0',
    950: '#000000',
  },
}
SCSS
$custom: #2a25a0;
$custom-light: #7762bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a25a0",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 160
  },
  "hsl": {
    "h": 242.439,
    "s": 62.437,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37026,
    "c": 0.18818,
    "h": 273.9
  },
  "luminance": 0.04353
}

Semantic roles & 50–950 ramp

primary
#2A25A0
secondary
#BDC160
accent
#E642DF
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A25A0

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

Preview Lab → · Contrast checker → · Palette generator →

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