#254F97#254F97

#254F97 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 43.9% C 0.127 H 260.4°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#254F97
RGBrgb(37, 79, 151)
HSLhsl(218, 61%, 37%)
HSVhsv(218, 75%, 59%)
CMYKcmyk(75.5%, 47.7%, 0%, 40.8%)
CIE-LABlab(34.43, 11.71, -43.73)
CIE-LCHlch(34.43, 45.27, 284.99°)
OKLaboklab(43.85% -0.0212 -0.1254)
OKLCHoklch(43.85% 0.127 260.4)
XYZxyz(9.1428, 8.2186, 30.3767)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254F97 #976D25
analogous
#258897 #254F97 #342597
triadic
#254F97 #97254F #4F9725
tetradic
#254F97 #972588 #976D25 #259734
square
#254F97 #972588 #976D25 #259734
split-complementary
#254F97 #973425 #889725
monochromatic
#0D1C35 #193566 #254F97 #3169C8 #5F8BD8

Accessibility & contrast

On white

7.94
#254F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#254F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254F97
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254F97#FFFFFF#000000##FFFFFF
##254F971.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29579A
Deuteranopia (green-blind)
#0C4C96
Tritanopia (blue-blind)
#00606B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #254f97;
/* rgb */ color: rgb(37, 79, 151);
/* oklch */ color: oklch(43.9% 0.127 260.4);
Tailwind
colors: {
  custom: {
    50: '#707fb6',
    500: '#254f97',
    950: '#000000',
  },
}
SCSS
$custom: #254f97;
$custom-light: #707fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#254f97",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 151
  },
  "hsl": {
    "h": 217.895,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.43852,
    "c": 0.12721,
    "h": 260.4
  },
  "luminance": 0.0822
}

Semantic roles & 50–950 ramp

primary
#254F97
secondary
#BD995B
accent
#A944E4
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #254F97

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

Preview Lab → · Contrast checker → · Palette generator →

#254F97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva