#252A8B#252A8B

#252A8B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.157 H 272.8°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#252A8B
RGBrgb(37, 42, 139)
HSLhsl(237, 58%, 35%)
HSVhsv(237, 73%, 55%)
CMYKcmyk(73.4%, 69.8%, 0%, 45.5%)
CIE-LABlab(23.38, 32.06, -54.32)
CIE-LCHlch(23.38, 63.08, 300.55°)
OKLaboklab(35.27% 0.0076 -0.157)
OKLCHoklch(35.27% 0.157 272.8)
XYZxyz(6.2495, 3.9127, 24.8470)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252A8B #8B8625
analogous
#255D8B #252A8B #53258B
triadic
#252A8B #8B252A #2A8B25
tetradic
#252A8B #8B255D #8B8625 #258B53
square
#252A8B #8B255D #8B8625 #258B53
split-complementary
#252A8B #8B5325 #5D8B25
monochromatic
#0B0D2A #181B5B #252A8B #3239BB #585ED3

Accessibility & contrast

On white

11.78
#252A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #252A8B
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252A8B#FFFFFF#000000##FFFFFF
##252A8B1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #252a8b;
/* rgb */ color: rgb(37, 42, 139);
/* oklch */ color: oklch(35.3% 0.157 272.8);
Tailwind
colors: {
  custom: {
    50: '#7064ae',
    500: '#252a8b',
    950: '#000000',
  },
}
SCSS
$custom: #252a8b;
$custom-light: #7064ae;
$custom-dark: #000000;
JSON
{
  "hex": "#252a8b",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 237.059,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3527,
    "c": 0.15722,
    "h": 272.8
  },
  "luminance": 0.03913
}

Semantic roles & 50–950 ramp

primary
#252A8B
secondary
#B7B255
accent
#DA47E1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #252A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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