#252A7C#252A7C

#252A7C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.137 H 273.8°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#252A7C
RGBrgb(37, 42, 124)
HSLhsl(237, 54%, 32%)
HSVhsv(237, 70%, 49%)
CMYKcmyk(70.2%, 66.1%, 0%, 51.4%)
CIE-LABlab(21.96, 26.53, -47.22)
CIE-LCHlch(21.96, 54.17, 299.33°)
OKLaboklab(33.8% 0.009 -0.1363)
OKLCHoklch(33.8% 0.137 273.8)
XYZxyz(5.2278, 3.5040, 19.4657)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252A7C #7C7725
analogous
#25567C #252A7C #4C257C
triadic
#252A7C #7C252A #2A7C25
tetradic
#252A7C #7C2556 #7C7725 #257C4C
square
#252A7C #7C2556 #7C7725 #257C4C
split-complementary
#252A7C #7C4C25 #567C25
monochromatic
#090A1E #171A4D #252A7C #333AAB #5058CB

Accessibility & contrast

On white

12.35
#252A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#252A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252A7C
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252A7C#FFFFFF#000000##FFFFFF
##252A7C1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #252a7c;
/* rgb */ color: rgb(37, 42, 124);
/* oklch */ color: oklch(33.8% 0.137 273.8);
Tailwind
colors: {
  custom: {
    50: '#6c63a3',
    500: '#252a7c',
    950: '#000000',
  },
}
SCSS
$custom: #252a7c;
$custom-light: #6c63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#252a7c",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 236.552,
    "s": 54.037,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33799,
    "c": 0.13656,
    "h": 273.8
  },
  "luminance": 0.03504
}

Semantic roles & 50–950 ramp

primary
#252A7C
secondary
#AEA94F
accent
#D54ADD
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #252A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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