#252C98#252C98

#252C98 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.9% C 0.172 H 271.6°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#252C98
RGBrgb(37, 44, 152)
HSLhsl(236, 61%, 37%)
HSVhsv(236, 76%, 60%)
CMYKcmyk(75.7%, 71.1%, 0%, 40.4%)
CIE-LABlab(25.14, 35.49, -59.46)
CIE-LCHlch(25.14, 69.25, 300.83°)
OKLaboklab(36.93% 0.0048 -0.1721)
OKLCHoklch(36.93% 0.172 271.6)
XYZxyz(7.3292, 4.4609, 30.1745)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252C98 #989125
analogous
#256698 #252C98 #582598
triadic
#252C98 #98252C #2C9825
tetradic
#252C98 #982566 #989125 #259858
square
#252C98 #982566 #989125 #259858
split-complementary
#252C98 #985825 #669825
monochromatic
#0D1036 #191E67 #252C98 #313AC9 #5F67D8

Accessibility & contrast

On white

11.10
#252C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#252C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252C98
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252C98#FFFFFF#000000##FFFFFF
##252C981.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003696
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #252c98;
/* rgb */ color: rgb(37, 44, 152);
/* oklch */ color: oklch(36.9% 0.172 271.6);
Tailwind
colors: {
  custom: {
    50: '#7366b7',
    500: '#252c98',
    950: '#000000',
  },
}
SCSS
$custom: #252c98;
$custom-light: #7366b7;
$custom-dark: #000000;
JSON
{
  "hex": "#252c98",
  "rgb": {
    "r": 37,
    "g": 44,
    "b": 152
  },
  "hsl": {
    "h": 236.348,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36932,
    "c": 0.17213,
    "h": 271.6
  },
  "luminance": 0.04462
}

Semantic roles & 50–950 ramp

primary
#252C98
secondary
#BDB75C
accent
#DA44E4
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #252C98

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

Preview Lab → · Contrast checker → · Palette generator →

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