#252E7F#252E7F

#252E7F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.136 H 272.3°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#252E7F
RGBrgb(37, 46, 127)
HSLhsl(234, 55%, 32%)
HSVhsv(234, 71%, 50%)
CMYKcmyk(70.9%, 63.8%, 0%, 50.2%)
CIE-LABlab(23.27, 24.95, -46.98)
CIE-LCHlch(23.27, 53.19, 297.97°)
OKLaboklab(34.84% 0.0056 -0.1355)
OKLCHoklch(34.84% 0.136 272.3)
XYZxyz(5.5694, 3.8791, 20.5298)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252E7F #7F7625
analogous
#255B7F #252E7F #49257F
triadic
#252E7F #7F252E #2E7F25
tetradic
#252E7F #7F255B #7F7625 #257F49
square
#252E7F #7F255B #7F7625 #257F49
split-complementary
#252E7F #7F4925 #5B7F25
monochromatic
#090C20 #171D50 #252E7F #333FAE #525ECD

Accessibility & contrast

On white

11.82
#252E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #252E7F
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252E7F#FFFFFF#000000##FFFFFF
##252E7F1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #252e7f;
/* rgb */ color: rgb(37, 46, 127);
/* oklch */ color: oklch(34.8% 0.136 272.3);
Tailwind
colors: {
  custom: {
    50: '#6c66a5',
    500: '#252e7f',
    950: '#000000',
  },
}
SCSS
$custom: #252e7f;
$custom-light: #6c66a5;
$custom-dark: #000000;
JSON
{
  "hex": "#252e7f",
  "rgb": {
    "r": 37,
    "g": 46,
    "b": 127
  },
  "hsl": {
    "h": 234,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34844,
    "c": 0.13564,
    "h": 272.3
  },
  "luminance": 0.0388
}

Semantic roles & 50–950 ramp

primary
#252E7F
secondary
#B1A74F
accent
#CF4ADE
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #252E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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