#252A98#252A98

#252A98 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.6% C 0.174 H 271.9°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#252A98
RGBrgb(37, 42, 152)
HSLhsl(237, 61%, 37%)
HSVhsv(237, 76%, 60%)
CMYKcmyk(75.7%, 72.4%, 0%, 40.4%)
CIE-LABlab(24.69, 36.73, -60.21)
CIE-LCHlch(24.69, 70.53, 301.39°)
OKLaboklab(36.61% 0.0059 -0.1742)
OKLCHoklch(36.61% 0.174 271.9)
XYZxyz(7.2565, 4.3155, 30.1502)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252A98 #989325
analogous
#256498 #252A98 #592598
triadic
#252A98 #98252A #2A9825
tetradic
#252A98 #982564 #989325 #259859
square
#252A98 #982564 #989325 #259859
split-complementary
#252A98 #985925 #649825
monochromatic
#0D0F36 #191C67 #252A98 #3138C9 #5F65D8

Accessibility & contrast

On white

11.27
#252A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #252A98
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252A98#FFFFFF#000000##FFFFFF
##252A981.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003596
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #252a98;
/* rgb */ color: rgb(37, 42, 152);
/* oklch */ color: oklch(36.6% 0.174 271.9);
Tailwind
colors: {
  custom: {
    50: '#7364b7',
    500: '#252a98',
    950: '#000000',
  },
}
SCSS
$custom: #252a98;
$custom-light: #7364b7;
$custom-dark: #000000;
JSON
{
  "hex": "#252a98",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 237.391,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36607,
    "c": 0.17433,
    "h": 271.9
  },
  "luminance": 0.04316
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #252A98

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

Preview Lab → · Contrast checker → · Palette generator →

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