#252A7E#252A7E

#252A7E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.139 H 273.6°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#252A7E
RGBrgb(37, 42, 126)
HSLhsl(237, 55%, 32%)
HSVhsv(237, 71%, 49%)
CMYKcmyk(70.6%, 66.7%, 0%, 50.6%)
CIE-LABlab(22.14, 27.28, -48.19)
CIE-LCHlch(22.14, 55.37, 299.51°)
OKLaboklab(33.99% 0.0089 -0.1391)
OKLCHoklch(33.99% 0.139 273.6)
XYZxyz(5.3556, 3.5551, 20.1386)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252A7E #7E7925
analogous
#25577E #252A7E #4D257E
triadic
#252A7E #7E252A #2A7E25
tetradic
#252A7E #7E2557 #7E7925 #257E4D
square
#252A7E #7E2557 #7E7925 #257E4D
split-complementary
#252A7E #7E4D25 #577E25
monochromatic
#090A1F #171A4F #252A7E #333AAD #5158CC

Accessibility & contrast

On white

12.27
#252A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#252A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252A7E
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252A7E#FFFFFF#000000##FFFFFF
##252A7E1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #252a7e;
/* rgb */ color: rgb(37, 42, 126);
/* oklch */ color: oklch(34.0% 0.139 273.6);
Tailwind
colors: {
  custom: {
    50: '#6c63a4',
    500: '#252a7e',
    950: '#000000',
  },
}
SCSS
$custom: #252a7e;
$custom-light: #6c63a4;
$custom-dark: #000000;
JSON
{
  "hex": "#252a7e",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 236.629,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3399,
    "c": 0.13938,
    "h": 273.6
  },
  "luminance": 0.03556
}

Semantic roles & 50–950 ramp

primary
#252A7E
secondary
#B0AB4F
accent
#D64ADE
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #252A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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