#252A85#252A85

#252A85 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.149 H 273.2°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#252A85
RGBrgb(37, 42, 133)
HSLhsl(237, 56%, 33%)
HSVhsv(237, 72%, 52%)
CMYKcmyk(72.2%, 68.4%, 0%, 47.8%)
CIE-LABlab(22.80, 29.87, -51.52)
CIE-LCHlch(22.80, 59.55, 300.10°)
OKLaboklab(34.67% 0.0082 -0.1489)
OKLCHoklch(34.67% 0.149 273.2)
XYZxyz(5.8231, 3.7421, 22.6012)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252A85 #858025
analogous
#255A85 #252A85 #502585
triadic
#252A85 #85252A #2A8525
tetradic
#252A85 #85255A #858025 #258550
square
#252A85 #85255A #858025 #258550
split-complementary
#252A85 #855025 #5A8525
monochromatic
#0A0C25 #181B55 #252A85 #3239B5 #555BD0

Accessibility & contrast

On white

12.01
#252A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#252A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252A85
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252A85#FFFFFF#000000##FFFFFF
##252A851.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B88
Deuteranopia (green-blind)
#003283
Tritanopia (blue-blind)
#004253
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #252a85;
/* rgb */ color: rgb(37, 42, 133);
/* oklch */ color: oklch(34.7% 0.149 273.2);
Tailwind
colors: {
  custom: {
    50: '#6e64a9',
    500: '#252a85',
    950: '#000000',
  },
}
SCSS
$custom: #252a85;
$custom-light: #6e64a9;
$custom-dark: #000000;
JSON
{
  "hex": "#252a85",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 133
  },
  "hsl": {
    "h": 236.875,
    "s": 56.471,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34671,
    "c": 0.14909,
    "h": 273.2
  },
  "luminance": 0.03743
}

Semantic roles & 50–950 ramp

primary
#252A85
secondary
#B4AF52
accent
#D848E0
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #252A85

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

Preview Lab → · Contrast checker → · Palette generator →

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