#252F80#252F80

#252F80 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.1% C 0.136 H 272.0°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#252F80
RGBrgb(37, 47, 128)
HSLhsl(233, 55%, 32%)
HSVhsv(233, 71%, 50%)
CMYKcmyk(71.1%, 63.3%, 0%, 49.8%)
CIE-LABlab(23.62, 24.64, -47.04)
CIE-LCHlch(23.62, 53.10, 297.65°)
OKLaboklab(35.13% 0.0047 -0.1357)
OKLCHoklch(35.13% 0.136 272)
XYZxyz(5.6744, 3.9843, 20.8879)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F80 #807625
analogous
#255C80 #252F80 #492580
triadic
#252F80 #80252F #2F8025
tetradic
#252F80 #80255C #807625 #258049
square
#252F80 #80255C #807625 #258049
split-complementary
#252F80 #804925 #5C8025
monochromatic
#0A0C21 #171E51 #252F80 #3340AF #5260CD

Accessibility & contrast

On white

11.69
#252F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#252F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F80
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F80#FFFFFF#000000##FFFFFF
##252F801.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C83
Deuteranopia (green-blind)
#00347E
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #252f80;
/* rgb */ color: rgb(37, 47, 128);
/* oklch */ color: oklch(35.1% 0.136 272.0);
Tailwind
colors: {
  custom: {
    50: '#6c67a6',
    500: '#252f80',
    950: '#000000',
  },
}
SCSS
$custom: #252f80;
$custom-light: #6c67a6;
$custom-dark: #000000;
JSON
{
  "hex": "#252f80",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 128
  },
  "hsl": {
    "h": 233.407,
    "s": 55.152,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35131,
    "c": 0.13576,
    "h": 272
  },
  "luminance": 0.03985
}

Semantic roles & 50–950 ramp

primary
#252F80
secondary
#B1A750
accent
#CE49DE
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #252F80

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

Preview Lab → · Contrast checker → · Palette generator →

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