#252F8A#252F8A

#252F8A is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.1% C 0.150 H 271.6°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#252F8A
RGBrgb(37, 47, 138)
HSLhsl(234, 58%, 34%)
HSVhsv(234, 73%, 54%)
CMYKcmyk(73.2%, 65.9%, 0%, 45.9%)
CIE-LABlab(24.52, 28.41, -51.84)
CIE-LCHlch(24.52, 59.11, 298.73°)
OKLaboklab(36.07% 0.0042 -0.1497)
OKLCHoklch(36.07% 0.15 271.6)
XYZxyz(6.3654, 4.2607, 24.5268)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F8A #8A8025
analogous
#25628A #252F8A #4D258A
triadic
#252F8A #8A252F #2F8A25
tetradic
#252F8A #8A2562 #8A8025 #258A4D
square
#252F8A #8A2562 #8A8025 #258A4D
split-complementary
#252F8A #8A4D25 #628A25
monochromatic
#0B0E29 #181F5A #252F8A #323FBA #5764D2

Accessibility & contrast

On white

11.34
#252F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#252F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F8A
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F8A#FFFFFF#000000##FFFFFF
##252F8A1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003688
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #252f8a;
/* rgb */ color: rgb(37, 47, 138);
/* oklch */ color: oklch(36.1% 0.150 271.6);
Tailwind
colors: {
  custom: {
    50: '#6f67ad',
    500: '#252f8a',
    950: '#000000',
  },
}
SCSS
$custom: #252f8a;
$custom-light: #6f67ad;
$custom-dark: #000000;
JSON
{
  "hex": "#252f8a",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 234.059,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36067,
    "c": 0.14981,
    "h": 271.6
  },
  "luminance": 0.04261
}

Semantic roles & 50–950 ramp

primary
#252F8A
secondary
#B7AD54
accent
#D247E1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #252F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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