#2D258D#2D258D

#2D258D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.164 H 277.3°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#2D258D
RGBrgb(45, 37, 141)
HSLhsl(245, 58%, 35%)
HSVhsv(245, 74%, 55%)
CMYKcmyk(68.1%, 73.8%, 0%, 44.7%)
CIE-LABlab(23.01, 36.84, -56.15)
CIE-LCHlch(23.01, 67.16, 303.27°)
OKLaboklab(35.21% 0.0208 -0.1622)
OKLCHoklch(35.21% 0.164 277.3)
XYZxyz(6.5499, 3.8035, 25.5831)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D258D #858D25
analogous
#25518D #2D258D #61258D
triadic
#2D258D #8D2D25 #258D2D
tetradic
#2D258D #8D2551 #858D25 #258D61
square
#2D258D #8D2551 #858D25 #258D61
split-complementary
#2D258D #8D6125 #518D25
monochromatic
#0E0C2C #1E185D #2D258D #3C32BD #6259D3

Accessibility & contrast

On white

11.93
#2D258D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2D258D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D258D
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D258D#FFFFFF#000000##FFFFFF
##2D258D1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d258d;
/* rgb */ color: rgb(45, 37, 141);
/* oklch */ color: oklch(35.2% 0.164 277.3);
Tailwind
colors: {
  custom: {
    50: '#7461af',
    500: '#2d258d',
    950: '#000000',
  },
}
SCSS
$custom: #2d258d;
$custom-light: #7461af;
$custom-dark: #000000;
JSON
{
  "hex": "#2d258d",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 244.615,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35211,
    "c": 0.16351,
    "h": 277.3
  },
  "luminance": 0.03804
}

Semantic roles & 50–950 ramp

primary
#2D258D
secondary
#B0B856
accent
#E246D6
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #2D258D

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

Preview Lab → · Contrast checker → · Palette generator →

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