#252D98#252D98

#252D98 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.1% C 0.171 H 271.4°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#252D98
RGBrgb(37, 45, 152)
HSLhsl(236, 61%, 37%)
HSVhsv(236, 76%, 60%)
CMYKcmyk(75.7%, 70.4%, 0%, 40.4%)
CIE-LABlab(25.37, 34.86, -59.08)
CIE-LCHlch(25.37, 68.60, 300.54°)
OKLaboklab(37.1% 0.0042 -0.1709)
OKLCHoklch(37.1% 0.171 271.4)
XYZxyz(7.3669, 4.5363, 30.1870)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252D98 #989025
analogous
#256798 #252D98 #572598
triadic
#252D98 #98252D #2D9825
tetradic
#252D98 #982567 #989025 #259857
square
#252D98 #982567 #989025 #259857
split-complementary
#252D98 #985725 #679825
monochromatic
#0D1036 #191E67 #252D98 #313CC9 #5F68D8

Accessibility & contrast

On white

11.01
#252D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#252D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252D98
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252D98#FFFFFF#000000##FFFFFF
##252D981.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #252d98;
/* rgb */ color: rgb(37, 45, 152);
/* oklch */ color: oklch(37.1% 0.171 271.4);
Tailwind
colors: {
  custom: {
    50: '#7366b7',
    500: '#252d98',
    950: '#000000',
  },
}
SCSS
$custom: #252d98;
$custom-light: #7366b7;
$custom-dark: #000000;
JSON
{
  "hex": "#252d98",
  "rgb": {
    "r": 37,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 235.826,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37098,
    "c": 0.171,
    "h": 271.4
  },
  "luminance": 0.04537
}

Semantic roles & 50–950 ramp

primary
#252D98
secondary
#BDB65C
accent
#D944E4
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #252D98

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

Preview Lab → · Contrast checker → · Palette generator →

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