#254997#254997

#254997 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.5% C 0.135 H 263.2°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#254997
RGBrgb(37, 73, 151)
HSLhsl(221, 61%, 37%)
HSVhsv(221, 75%, 59%)
CMYKcmyk(75.5%, 51.7%, 0%, 40.8%)
CIE-LABlab(32.68, 15.75, -46.55)
CIE-LCHlch(32.68, 49.14, 288.69°)
OKLaboklab(42.51% -0.0159 -0.1338)
OKLCHoklch(42.51% 0.135 263.2)
XYZxyz(8.7294, 7.3918, 30.2389)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254997 #977325
analogous
#258297 #254997 #3A2597
triadic
#254997 #972549 #499725
tetradic
#254997 #972582 #977325 #25973A
square
#254997 #972582 #977325 #25973A
split-complementary
#254997 #973A25 #829725
monochromatic
#0D1935 #193166 #254997 #3161C8 #5F85D8

Accessibility & contrast

On white

8.47
#254997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#254997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254997
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254997#FFFFFF#000000##FFFFFF
##2549971.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19529A
Deuteranopia (green-blind)
#004895
Tritanopia (blue-blind)
#005C69
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #254997;
/* rgb */ color: rgb(37, 73, 151);
/* oklch */ color: oklch(42.5% 0.135 263.2);
Tailwind
colors: {
  custom: {
    50: '#707bb6',
    500: '#254997',
    950: '#000000',
  },
}
SCSS
$custom: #254997;
$custom-light: #707bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#254997",
  "rgb": {
    "r": 37,
    "g": 73,
    "b": 151
  },
  "hsl": {
    "h": 221.053,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42512,
    "c": 0.13479,
    "h": 263.2
  },
  "luminance": 0.07393
}

Semantic roles & 50–950 ramp

primary
#254997
secondary
#BD9E5B
accent
#B144E4
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #254997

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

Preview Lab → · Contrast checker → · Palette generator →

#254997 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva