#252B98#252B98

#252B98 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.8% C 0.173 H 271.8°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#252B98
RGBrgb(37, 43, 152)
HSLhsl(237, 61%, 37%)
HSVhsv(237, 76%, 60%)
CMYKcmyk(75.7%, 71.7%, 0%, 40.4%)
CIE-LABlab(24.91, 36.11, -59.84)
CIE-LCHlch(24.91, 69.89, 301.11°)
OKLaboklab(36.77% 0.0053 -0.1731)
OKLCHoklch(36.77% 0.173 271.8)
XYZxyz(7.2924, 4.3873, 30.1622)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252B98 #989225
analogous
#256498 #252B98 #592598
triadic
#252B98 #98252B #2B9825
tetradic
#252B98 #982564 #989225 #259859
square
#252B98 #982564 #989225 #259859
split-complementary
#252B98 #985925 #649825
monochromatic
#0D0F36 #191D67 #252B98 #3139C9 #5F66D8

Accessibility & contrast

On white

11.18
#252B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#252B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252B98
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252B98#FFFFFF#000000##FFFFFF
##252B981.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #252b98;
/* rgb */ color: rgb(37, 43, 152);
/* oklch */ color: oklch(36.8% 0.173 271.8);
Tailwind
colors: {
  custom: {
    50: '#7365b7',
    500: '#252b98',
    950: '#000000',
  },
}
SCSS
$custom: #252b98;
$custom-light: #7365b7;
$custom-dark: #000000;
JSON
{
  "hex": "#252b98",
  "rgb": {
    "r": 37,
    "g": 43,
    "b": 152
  },
  "hsl": {
    "h": 236.87,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36768,
    "c": 0.17323,
    "h": 271.8
  },
  "luminance": 0.04388
}

Semantic roles & 50–950 ramp

primary
#252B98
secondary
#BDB85C
accent
#DC44E4
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #252B98

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

Preview Lab → · Contrast checker → · Palette generator →

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