#254F99#254F99

#254F99 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.0% C 0.130 H 260.8°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#254F99
RGBrgb(37, 79, 153)
HSLhsl(218, 61%, 37%)
HSVhsv(218, 76%, 60%)
CMYKcmyk(75.8%, 48.4%, 0%, 40%)
CIE-LABlab(34.57, 12.49, -44.72)
CIE-LCHlch(34.57, 46.44, 285.60°)
OKLaboklab(44% -0.0208 -0.1284)
OKLCHoklch(44% 0.13 260.8)
XYZxyz(9.3066, 8.2842, 31.2393)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254F99 #996F25
analogous
#258999 #254F99 #352599
triadic
#254F99 #99254F #4F9925
tetradic
#254F99 #992589 #996F25 #259935
square
#254F99 #992589 #996F25 #259935
split-complementary
#254F99 #993525 #899925
monochromatic
#0D1C36 #193668 #254F99 #3168CA #608CD9

Accessibility & contrast

On white

7.90
#254F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#254F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254F99
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254F99#FFFFFF#000000##FFFFFF
##254F991.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27579C
Deuteranopia (green-blind)
#054C98
Tritanopia (blue-blind)
#00616C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #254f99;
/* rgb */ color: rgb(37, 79, 153);
/* oklch */ color: oklch(44.0% 0.130 260.8);
Tailwind
colors: {
  custom: {
    50: '#707fb7',
    500: '#254f99',
    950: '#000000',
  },
}
SCSS
$custom: #254f99;
$custom-light: #707fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#254f99",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 153
  },
  "hsl": {
    "h": 218.276,
    "s": 61.053,
    "l": 37.255
  },
  "oklch": {
    "l": 0.43998,
    "c": 0.13004,
    "h": 260.8
  },
  "luminance": 0.08285
}

Semantic roles & 50–950 ramp

primary
#254F99
secondary
#BE9A5C
accent
#AA44E4
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #254F99

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

Preview Lab → · Contrast checker → · Palette generator →

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