#2D257D#2D257D

#2D257D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.142 H 279.6°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#2D257D
RGBrgb(45, 37, 125)
HSLhsl(245, 54%, 32%)
HSVhsv(245, 70%, 49%)
CMYKcmyk(64%, 70.4%, 0%, 51%)
CIE-LABlab(21.44, 31.37, -48.69)
CIE-LCHlch(21.44, 57.92, 302.80°)
OKLaboklab(33.6% 0.0236 -0.1403)
OKLCHoklch(33.6% 0.142 279.6)
XYZxyz(5.4442, 3.3613, 19.7600)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D257D #757D25
analogous
#25497D #2D257D #59257D
triadic
#2D257D #7D2D25 #257D2D
tetradic
#2D257D #7D2549 #757D25 #257D59
square
#2D257D #7D2549 #757D25 #257D59
split-complementary
#2D257D #7D5925 #497D25
monochromatic
#0B091F #1C174E #2D257D #3E33AC #5C51CB

Accessibility & contrast

On white

12.56
#2D257D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2D257D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D257D
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D257D#FFFFFF#000000##FFFFFF
##2D257D1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d257d;
/* rgb */ color: rgb(45, 37, 125);
/* oklch */ color: oklch(33.6% 0.142 279.6);
Tailwind
colors: {
  custom: {
    50: '#7060a4',
    500: '#2d257d',
    950: '#000000',
  },
}
SCSS
$custom: #2d257d;
$custom-light: #7060a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d257d",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 125
  },
  "hsl": {
    "h": 245.455,
    "s": 54.321,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33604,
    "c": 0.14232,
    "h": 279.6
  },
  "luminance": 0.03362
}

Semantic roles & 50–950 ramp

primary
#2D257D
secondary
#A6AF4F
accent
#DE4AD0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2D257D

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

Preview Lab → · Contrast checker → · Palette generator →

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