#252A9F#252A9F

#252A9F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.3% C 0.183 H 271.5°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#252A9F
RGBrgb(37, 42, 159)
HSLhsl(238, 62%, 38%)
HSVhsv(238, 77%, 62%)
CMYKcmyk(76.7%, 73.6%, 0%, 37.6%)
CIE-LABlab(25.42, 39.19, -63.28)
CIE-LCHlch(25.42, 74.44, 301.77°)
OKLaboklab(37.35% 0.0048 -0.1832)
OKLCHoklch(37.35% 0.183 271.5)
XYZxyz(7.8468, 4.5516, 33.2592)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252A9F #9F9A25
analogous
#25679F #252A9F #5D259F
triadic
#252A9F #9F252A #2A9F25
tetradic
#252A9F #9F2567 #9F9A25 #259F5D
square
#252A9F #9F2567 #9F9A25 #259F5D
split-complementary
#252A9F #9F5D25 #679F25
monochromatic
#0E103C #191D6D #252A9F #3238CF #6468DB

Accessibility & contrast

On white

10.99
#252A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #252A9F
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252A9F#FFFFFF#000000##FFFFFF
##252A9F1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#00369D
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #252a9f;
/* rgb */ color: rgb(37, 42, 159);
/* oklch */ color: oklch(37.3% 0.183 271.5);
Tailwind
colors: {
  custom: {
    50: '#7565bd',
    500: '#252a9f',
    950: '#000000',
  },
}
SCSS
$custom: #252a9f;
$custom-light: #7565bd;
$custom-dark: #000000;
JSON
{
  "hex": "#252a9f",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 159
  },
  "hsl": {
    "h": 237.541,
    "s": 62.245,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37347,
    "c": 0.18326,
    "h": 271.5
  },
  "luminance": 0.04552
}

Semantic roles & 50–950 ramp

primary
#252A9F
secondary
#C0BC5F
accent
#DF42E5
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #252A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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