#252D9F#252D9F

#252D9F is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.8% C 0.180 H 271.1°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#252D9F
RGBrgb(37, 45, 159)
HSLhsl(236, 62%, 38%)
HSVhsv(236, 77%, 62%)
CMYKcmyk(76.7%, 71.7%, 0%, 37.6%)
CIE-LABlab(26.08, 37.37, -62.20)
CIE-LCHlch(26.08, 72.56, 301.00°)
OKLaboklab(37.82% 0.0034 -0.18)
OKLCHoklch(37.82% 0.18 271.1)
XYZxyz(7.9572, 4.7724, 33.2960)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252D9F #9F9725
analogous
#256A9F #252D9F #5A259F
triadic
#252D9F #9F252D #2D9F25
tetradic
#252D9F #9F256A #9F9725 #259F5A
square
#252D9F #9F256A #9F9725 #259F5A
split-complementary
#252D9F #9F5A25 #6A9F25
monochromatic
#0E113C #191F6D #252D9F #323CCF #646BDB

Accessibility & contrast

On white

10.74
#252D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#252D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252D9F
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252D9F#FFFFFF#000000##FFFFFF
##252D9F1.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00389D
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #252d9f;
/* rgb */ color: rgb(37, 45, 159);
/* oklch */ color: oklch(37.8% 0.180 271.1);
Tailwind
colors: {
  custom: {
    50: '#7467bd',
    500: '#252d9f',
    950: '#000000',
  },
}
SCSS
$custom: #252d9f;
$custom-light: #7467bd;
$custom-dark: #000000;
JSON
{
  "hex": "#252d9f",
  "rgb": {
    "r": 37,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 236.066,
    "s": 62.245,
    "l": 38.431
  },
  "oklch": {
    "l": 0.3782,
    "c": 0.18007,
    "h": 271.1
  },
  "luminance": 0.04773
}

Semantic roles & 50–950 ramp

primary
#252D9F
secondary
#C0BA5F
accent
#DB42E5
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #252D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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