#254F9A#254F9A

#254F9A is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.1% C 0.131 H 260.9°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#254F9A
RGBrgb(37, 79, 154)
HSLhsl(218, 61%, 37%)
HSVhsv(218, 76%, 60%)
CMYKcmyk(76%, 48.7%, 0%, 39.6%)
CIE-LABlab(34.64, 12.88, -45.22)
CIE-LCHlch(34.64, 47.02, 285.90°)
OKLaboklab(44.07% -0.0207 -0.1298)
OKLCHoklch(44.07% 0.131 260.9)
XYZxyz(9.3896, 8.3173, 31.6761)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254F9A #9A7025
analogous
#25899A #254F9A #36259A
triadic
#254F9A #9A254F #4F9A25
tetradic
#254F9A #9A2589 #9A7025 #259A36
square
#254F9A #9A2589 #9A7025 #259A36
split-complementary
#254F9A #9A3625 #899A25
monochromatic
#0D1C37 #193669 #254F9A #3168CB #608CD9

Accessibility & contrast

On white

7.88
#254F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #254F9A
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254F9A#FFFFFF#000000##FFFFFF
##254F9A1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25579D
Deuteranopia (green-blind)
#014C98
Tritanopia (blue-blind)
#00616D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #254f9a;
/* rgb */ color: rgb(37, 79, 154);
/* oklch */ color: oklch(44.1% 0.131 260.9);
Tailwind
colors: {
  custom: {
    50: '#717fb8',
    500: '#254f9a',
    950: '#000000',
  },
}
SCSS
$custom: #254f9a;
$custom-light: #717fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#254f9a",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 154
  },
  "hsl": {
    "h": 218.462,
    "s": 61.257,
    "l": 37.451
  },
  "oklch": {
    "l": 0.44071,
    "c": 0.13146,
    "h": 260.9
  },
  "luminance": 0.08318
}

Semantic roles & 50–950 ramp

primary
#254F9A
secondary
#BE9B5D
accent
#AB43E4
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #254F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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