#252F76#252F76

#252F76 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.2% C 0.121 H 272.3°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#252F76
RGBrgb(37, 47, 118)
HSLhsl(233, 52%, 30%)
HSVhsv(233, 69%, 46%)
CMYKcmyk(68.6%, 60.2%, 0%, 53.7%)
CIE-LABlab(22.77, 20.83, -42.08)
CIE-LCHlch(22.77, 46.95, 296.34°)
OKLaboklab(34.24% 0.0048 -0.1211)
OKLCHoklch(34.24% 0.121 272.3)
XYZxyz(5.0484, 3.7339, 17.5907)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F76 #766C25
analogous
#255776 #252F76 #442576
triadic
#252F76 #76252F #2F7625
tetradic
#252F76 #762557 #766C25 #257644
square
#252F76 #762557 #766C25 #257644
split-complementary
#252F76 #764425 #577625
monochromatic
#080A19 #161C47 #252F76 #3442A5 #4E5DC7

Accessibility & contrast

On white

12.02
#252F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#252F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F76
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F76#FFFFFF#000000##FFFFFF
##252F761.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A78
Deuteranopia (green-blind)
#003375
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #252f76;
/* rgb */ color: rgb(37, 47, 118);
/* oklch */ color: oklch(34.2% 0.121 272.3);
Tailwind
colors: {
  custom: {
    50: '#6a679e',
    500: '#252f76',
    950: '#000000',
  },
}
SCSS
$custom: #252f76;
$custom-light: #6a679e;
$custom-dark: #000000;
JSON
{
  "hex": "#252f76",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 118
  },
  "hsl": {
    "h": 232.593,
    "s": 52.258,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34236,
    "c": 0.12121,
    "h": 272.3
  },
  "luminance": 0.03734
}

Semantic roles & 50–950 ramp

primary
#252F76
secondary
#A99D4E
accent
#CA4CDC
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #252F76

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

Preview Lab → · Contrast checker → · Palette generator →

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