#2D25A8#2D25A8

#2D25A8 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.1% C 0.197 H 274.4°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#2D25A8
RGBrgb(45, 37, 168)
HSLhsl(244, 64%, 40%)
HSVhsv(244, 78%, 66%)
CMYKcmyk(73.2%, 78%, 0%, 34.1%)
CIE-LABlab(25.88, 45.74, -67.96)
CIE-LCHlch(25.88, 81.92, 303.94°)
OKLaboklab(38.1% 0.015 -0.1966)
OKLCHoklch(38.1% 0.197 274.4)
XYZxyz(8.8093, 4.7073, 37.4825)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D25A8 #A0A825
analogous
#255FA8 #2D25A8 #6E25A8
triadic
#2D25A8 #A82D25 #25A82D
tetradic
#2D25A8 #A8255F #A0A825 #25A86E
square
#2D25A8 #A8255F #A0A825 #25A86E
split-complementary
#2D25A8 #A86E25 #5FA825
monochromatic
#120F44 #201A76 #2D25A8 #4137D3 #7069DE

Accessibility & contrast

On white

10.82
#2D25A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2D25A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D25A8
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D25A8#FFFFFF#000000##FFFFFF
##2D25A81.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d25a8;
/* rgb */ color: rgb(45, 37, 168);
/* oklch */ color: oklch(38.1% 0.197 274.4);
Tailwind
colors: {
  custom: {
    50: '#7a62c3',
    500: '#2d25a8',
    950: '#000000',
  },
}
SCSS
$custom: #2d25a8;
$custom-light: #7a62c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d25a8",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 168
  },
  "hsl": {
    "h": 243.664,
    "s": 63.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38097,
    "c": 0.19713,
    "h": 274.4
  },
  "luminance": 0.04708
}

Semantic roles & 50–950 ramp

primary
#2D25A8
secondary
#BEC465
accent
#E741DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2D25A8

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

Preview Lab → · Contrast checker → · Palette generator →

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