#252F7D#252F7D

#252F7D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.131 H 272.1°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#252F7D
RGBrgb(37, 47, 125)
HSLhsl(233, 54%, 32%)
HSVhsv(233, 70%, 49%)
CMYKcmyk(70.4%, 62.4%, 0%, 51%)
CIE-LABlab(23.36, 23.50, -45.57)
CIE-LCHlch(23.36, 51.27, 297.29°)
OKLaboklab(34.86% 0.0048 -0.1314)
OKLCHoklch(34.86% 0.131 272.1)
XYZxyz(5.4799, 3.9065, 19.8633)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F7D #7D7325
analogous
#255B7D #252F7D #47257D
triadic
#252F7D #7D252F #2F7D25
tetradic
#252F7D #7D255B #7D7325 #257D47
square
#252F7D #7D255B #7D7325 #257D47
split-complementary
#252F7D #7D4725 #5B7D25
monochromatic
#090B1F #171D4E #252F7D #3341AC #515FCB

Accessibility & contrast

On white

11.79
#252F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#252F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F7D
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F7D#FFFFFF#000000##FFFFFF
##252F7D1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #252f7d;
/* rgb */ color: rgb(37, 47, 125);
/* oklch */ color: oklch(34.9% 0.131 272.1);
Tailwind
colors: {
  custom: {
    50: '#6c67a3',
    500: '#252f7d',
    950: '#000000',
  },
}
SCSS
$custom: #252f7d;
$custom-light: #6c67a3;
$custom-dark: #000000;
JSON
{
  "hex": "#252f7d",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 233.182,
    "s": 54.321,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34858,
    "c": 0.13145,
    "h": 272.1
  },
  "luminance": 0.03907
}

Semantic roles & 50–950 ramp

primary
#252F7D
secondary
#AFA44F
accent
#CD4ADE
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #252F7D

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

Preview Lab → · Contrast checker → · Palette generator →

#252F7D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva