#254E97#254E97

#254E97 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.6% C 0.128 H 260.9°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#254E97
RGBrgb(37, 78, 151)
HSLhsl(218, 61%, 37%)
HSVhsv(218, 75%, 59%)
CMYKcmyk(75.5%, 48.3%, 0%, 40.8%)
CIE-LABlab(34.14, 12.38, -44.20)
CIE-LCHlch(34.14, 45.90, 285.64°)
OKLaboklab(43.63% -0.0203 -0.1268)
OKLCHoklch(43.63% 0.128 260.9)
XYZxyz(9.0712, 8.0755, 30.3528)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254E97 #976E25
analogous
#258797 #254E97 #352597
triadic
#254E97 #97254E #4E9725
tetradic
#254E97 #972587 #976E25 #259735
square
#254E97 #972587 #976E25 #259735
split-complementary
#254E97 #973525 #879725
monochromatic
#0D1B35 #193566 #254E97 #3167C8 #5F8AD8

Accessibility & contrast

On white

8.03
#254E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#254E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254E97
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254E97#FFFFFF#000000##FFFFFF
##254E971.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26569A
Deuteranopia (green-blind)
#064B96
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #254e97;
/* rgb */ color: rgb(37, 78, 151);
/* oklch */ color: oklch(43.6% 0.128 260.9);
Tailwind
colors: {
  custom: {
    50: '#707fb6',
    500: '#254e97',
    950: '#000000',
  },
}
SCSS
$custom: #254e97;
$custom-light: #707fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#254e97",
  "rgb": {
    "r": 37,
    "g": 78,
    "b": 151
  },
  "hsl": {
    "h": 218.421,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.43626,
    "c": 0.12846,
    "h": 260.9
  },
  "luminance": 0.08076
}

Semantic roles & 50–950 ramp

primary
#254E97
secondary
#BD9A5B
accent
#AA44E4
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #254E97

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

Preview Lab → · Contrast checker → · Palette generator →

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