#2D25A2#2D25A2

#2D25A2 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.4% C 0.190 H 274.9°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#2D25A2
RGBrgb(45, 37, 162)
HSLhsl(244, 63%, 39%)
HSVhsv(244, 77%, 64%)
CMYKcmyk(72.2%, 77.2%, 0%, 36.5%)
CIE-LABlab(25.23, 43.80, -65.41)
CIE-LCHlch(25.23, 78.72, 303.81°)
OKLaboklab(37.44% 0.0164 -0.1892)
OKLCHoklch(37.44% 0.19 274.9)
XYZxyz(8.2632, 4.4889, 34.6064)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D25A2 #9AA225
analogous
#255CA2 #2D25A2 #6C25A2
triadic
#2D25A2 #A22D25 #25A22D
tetradic
#2D25A2 #A2255C #9AA225 #25A26C
square
#2D25A2 #A2255C #9AA225 #25A26C
split-complementary
#2D25A2 #A26C25 #5CA225
monochromatic
#110E3E #1F1A70 #2D25A2 #3E34D1 #6D65DC

Accessibility & contrast

On white

11.06
#2D25A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2D25A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D25A2
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D25A2#FFFFFF#000000##FFFFFF
##2D25A21.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A6
Deuteranopia (green-blind)
#0036A0
Tritanopia (blue-blind)
#004A62
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d25a2;
/* rgb */ color: rgb(45, 37, 162);
/* oklch */ color: oklch(37.4% 0.190 274.9);
Tailwind
colors: {
  custom: {
    50: '#7962bf',
    500: '#2d25a2',
    950: '#000000',
  },
}
SCSS
$custom: #2d25a2;
$custom-light: #7962bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d25a2",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 162
  },
  "hsl": {
    "h": 243.84,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.3744,
    "c": 0.18986,
    "h": 274.9
  },
  "luminance": 0.0449
}

Semantic roles & 50–950 ramp

primary
#2D25A2
secondary
#BBC261
accent
#E642DB
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2D25A2

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

Preview Lab → · Contrast checker → · Palette generator →

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