#2A25A8#2A25A8

#2A25A8 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.9% C 0.198 H 273.2°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#2A25A8
RGBrgb(42, 37, 168)
HSLhsl(242, 64%, 40%)
HSVhsv(242, 78%, 66%)
CMYKcmyk(75%, 78%, 0%, 34.1%)
CIE-LABlab(25.69, 45.49, -68.29)
CIE-LCHlch(25.69, 82.05, 303.67°)
OKLaboklab(37.91% 0.0112 -0.1976)
OKLCHoklch(37.91% 0.198 273.2)
XYZxyz(8.6819, 4.6416, 37.4766)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A25A8 #A3A825
analogous
#2562A8 #2A25A8 #6B25A8
triadic
#2A25A8 #A82A25 #25A82A
tetradic
#2A25A8 #A82562 #A3A825 #25A86B
square
#2A25A8 #A82562 #A3A825 #25A86B
split-complementary
#2A25A8 #A86B25 #62A825
monochromatic
#110F44 #1D1A76 #2A25A8 #3D37D3 #6E69DE

Accessibility & contrast

On white

10.89
#2A25A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2A25A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A25A8
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A25A8#FFFFFF#000000##FFFFFF
##2A25A81.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AC
Deuteranopia (green-blind)
#0036A6
Tritanopia (blue-blind)
#004C66
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a25a8;
/* rgb */ color: rgb(42, 37, 168);
/* oklch */ color: oklch(37.9% 0.198 273.2);
Tailwind
colors: {
  custom: {
    50: '#7962c3',
    500: '#2a25a8',
    950: '#000000',
  },
}
SCSS
$custom: #2a25a8;
$custom-light: #7962c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a25a8",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 168
  },
  "hsl": {
    "h": 242.29,
    "s": 63.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.37908,
    "c": 0.1979,
    "h": 273.2
  },
  "luminance": 0.04643
}

Semantic roles & 50–950 ramp

primary
#2A25A8
secondary
#C0C465
accent
#E741E1
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2A25A8

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

Preview Lab → · Contrast checker → · Palette generator →

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