#2D25A6#2D25A6

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

Color values

HEX#2D25A6
RGBrgb(45, 37, 166)
HSLhsl(244, 64%, 40%)
HSVhsv(244, 78%, 65%)
CMYKcmyk(72.9%, 77.7%, 0%, 34.9%)
CIE-LABlab(25.66, 45.10, -67.11)
CIE-LCHlch(25.66, 80.86, 303.90°)
OKLaboklab(37.88% 0.0155 -0.1941)
OKLCHoklch(37.88% 0.195 274.6)
XYZxyz(8.6244, 4.6333, 36.5088)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D25A6 #9EA625
analogous
#255EA6 #2D25A6 #6E25A6
triadic
#2D25A6 #A62D25 #25A62D
tetradic
#2D25A6 #A6255E #9EA625 #25A66E
square
#2D25A6 #A6255E #9EA625 #25A66E
split-complementary
#2D25A6 #A66E25 #5EA625
monochromatic
#120F42 #1F1A74 #2D25A6 #4036D2 #6F68DD

Accessibility & contrast

On white

10.90
#2D25A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D25A6
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D25A6#FFFFFF#000000##FFFFFF
##2D25A61.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#0037A4
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2d25a6;
/* rgb */ color: rgb(45, 37, 166);
/* oklch */ color: oklch(37.9% 0.195 274.6);
Tailwind
colors: {
  custom: {
    50: '#7a62c2',
    500: '#2d25a6',
    950: '#000000',
  },
}
SCSS
$custom: #2d25a6;
$custom-light: #7a62c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d25a6",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 166
  },
  "hsl": {
    "h": 243.721,
    "s": 63.547,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37877,
    "c": 0.19471,
    "h": 274.6
  },
  "luminance": 0.04634
}

Semantic roles & 50–950 ramp

primary
#2D25A6
secondary
#BDC364
accent
#E741DC
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2D25A6

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

Preview Lab → · Contrast checker → · Palette generator →

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