#252A71#252A71

#252A71 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.121 H 274.5°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#252A71
RGBrgb(37, 42, 113)
HSLhsl(236, 51%, 29%)
HSVhsv(236, 67%, 44%)
CMYKcmyk(67.3%, 62.8%, 0%, 55.7%)
CIE-LABlab(20.98, 22.41, -41.78)
CIE-LCHlch(20.98, 47.41, 298.20°)
OKLaboklab(32.78% 0.0095 -0.1203)
OKLCHoklch(32.78% 0.121 274.5)
XYZxyz(4.5706, 3.2411, 16.0043)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252A71 #716C25
analogous
#255071 #252A71 #462571
triadic
#252A71 #71252A #2A7125
tetradic
#252A71 #712550 #716C25 #257146
square
#252A71 #712550 #716C25 #257146
split-complementary
#252A71 #714625 #507125
monochromatic
#080917 #161943 #252A71 #343B9F #4C54C4

Accessibility & contrast

On white

12.74
#252A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#252A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252A71
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252A71#FFFFFF#000000##FFFFFF
##252A711.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #252a71;
/* rgb */ color: rgb(37, 42, 113);
/* oklch */ color: oklch(32.8% 0.121 274.5);
Tailwind
colors: {
  custom: {
    50: '#69639a',
    500: '#252a71',
    950: '#000000',
  },
}
SCSS
$custom: #252a71;
$custom-light: #69639a;
$custom-dark: #000000;
JSON
{
  "hex": "#252a71",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 236.053,
    "s": 50.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32779,
    "c": 0.12067,
    "h": 274.5
  },
  "luminance": 0.03241
}

Semantic roles & 50–950 ramp

primary
#252A71
secondary
#A49E4E
accent
#D14EDA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #252A71

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

Preview Lab → · Contrast checker → · Palette generator →

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