#252D80#252D80

#252D80 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.7% C 0.138 H 272.6°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#252D80
RGBrgb(37, 45, 128)
HSLhsl(235, 55%, 32%)
HSVhsv(235, 71%, 50%)
CMYKcmyk(71.1%, 64.8%, 0%, 49.8%)
CIE-LABlab(23.09, 26.00, -47.89)
CIE-LCHlch(23.09, 54.50, 298.50°)
OKLaboklab(34.74% 0.0063 -0.1382)
OKLCHoklch(34.74% 0.138 272.6)
XYZxyz(5.5963, 3.8281, 20.8619)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252D80 #807825
analogous
#255B80 #252D80 #4A2580
triadic
#252D80 #80252D #2D8025
tetradic
#252D80 #80255B #807825 #25804A
square
#252D80 #80255B #807825 #25804A
split-complementary
#252D80 #804A25 #5B8025
monochromatic
#0A0C21 #171C51 #252D80 #333EAF #525DCD

Accessibility & contrast

On white

11.89
#252D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#252D80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252D80
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252D80#FFFFFF#000000##FFFFFF
##252D801.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B83
Deuteranopia (green-blind)
#00337E
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #252d80;
/* rgb */ color: rgb(37, 45, 128);
/* oklch */ color: oklch(34.7% 0.138 272.6);
Tailwind
colors: {
  custom: {
    50: '#6d66a6',
    500: '#252d80',
    950: '#000000',
  },
}
SCSS
$custom: #252d80;
$custom-light: #6d66a6;
$custom-dark: #000000;
JSON
{
  "hex": "#252d80",
  "rgb": {
    "r": 37,
    "g": 45,
    "b": 128
  },
  "hsl": {
    "h": 234.725,
    "s": 55.152,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34744,
    "c": 0.13835,
    "h": 272.6
  },
  "luminance": 0.03829
}

Semantic roles & 50–950 ramp

primary
#252D80
secondary
#B1A950
accent
#D149DE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #252D80

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

Preview Lab → · Contrast checker → · Palette generator →

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