#254D91#254D91

#254D91 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.0% C 0.121 H 260.3°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#254D91
RGBrgb(37, 77, 145)
HSLhsl(218, 59%, 36%)
HSVhsv(218, 74%, 57%)
CMYKcmyk(74.5%, 46.9%, 0%, 43.1%)
CIE-LABlab(33.45, 10.70, -41.67)
CIE-LCHlch(33.45, 43.02, 284.40°)
OKLaboklab(42.96% -0.0204 -0.1194)
OKLCHoklch(42.96% 0.121 260.3)
XYZxyz(8.5258, 7.7445, 27.8281)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254D91 #916925
analogous
#258391 #254D91 #332591
triadic
#254D91 #91254D #4D9125
tetradic
#254D91 #912583 #916925 #259133
square
#254D91 #912583 #916925 #259133
split-complementary
#254D91 #913325 #839125
monochromatic
#0C192F #193360 #254D91 #3167C2 #5B88D5

Accessibility & contrast

On white

8.24
#254D91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#254D91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254D91
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254D91#FFFFFF#000000##FFFFFF
##254D911.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5494
Deuteranopia (green-blind)
#124A90
Tritanopia (blue-blind)
#005D68
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #254d91;
/* rgb */ color: rgb(37, 77, 145);
/* oklch */ color: oklch(43.0% 0.121 260.3);
Tailwind
colors: {
  custom: {
    50: '#6f7eb2',
    500: '#254d91',
    950: '#000000',
  },
}
SCSS
$custom: #254d91;
$custom-light: #6f7eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#254d91",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 145
  },
  "hsl": {
    "h": 217.778,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42964,
    "c": 0.12115,
    "h": 260.3
  },
  "luminance": 0.07745
}

Semantic roles & 50–950 ramp

primary
#254D91
secondary
#BA9658
accent
#A845E3
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #254D91

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

Preview Lab → · Contrast checker → · Palette generator →

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