#252A97#252A97

#252A97 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.173 H 272.0°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#252A97
RGBrgb(37, 42, 151)
HSLhsl(237, 61%, 37%)
HSVhsv(237, 75%, 59%)
CMYKcmyk(75.5%, 72.2%, 0%, 40.8%)
CIE-LABlab(24.59, 36.38, -59.76)
CIE-LCHlch(24.59, 69.96, 301.33°)
OKLaboklab(36.5% 0.006 -0.1729)
OKLCHoklch(36.5% 0.173 272)
XYZxyz(7.1749, 4.2829, 29.7207)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252A97 #979225
analogous
#256397 #252A97 #592597
triadic
#252A97 #97252A #2A9725
tetradic
#252A97 #972563 #979225 #259759
square
#252A97 #972563 #979225 #259759
split-complementary
#252A97 #975925 #639725
monochromatic
#0D0F35 #191C66 #252A97 #3138C8 #5F64D8

Accessibility & contrast

On white

11.31
#252A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#252A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252A97
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252A97#FFFFFF#000000##FFFFFF
##252A971.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003595
Tritanopia (blue-blind)
#00495D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #252a97;
/* rgb */ color: rgb(37, 42, 151);
/* oklch */ color: oklch(36.5% 0.173 272.0);
Tailwind
colors: {
  custom: {
    50: '#7364b7',
    500: '#252a97',
    950: '#000000',
  },
}
SCSS
$custom: #252a97;
$custom-light: #7364b7;
$custom-dark: #000000;
JSON
{
  "hex": "#252a97",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 237.368,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36502,
    "c": 0.17303,
    "h": 272
  },
  "luminance": 0.04284
}

Semantic roles & 50–950 ramp

primary
#252A97
secondary
#BDB85B
accent
#DD44E4
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #252A97

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

Preview Lab → · Contrast checker → · Palette generator →

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