#254797#254797

#254797 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.1% C 0.137 H 264.0°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#254797
RGBrgb(37, 71, 151)
HSLhsl(222, 61%, 37%)
HSVhsv(222, 75%, 59%)
CMYKcmyk(75.5%, 53%, 0%, 40.8%)
CIE-LABlab(32.11, 17.11, -47.48)
CIE-LCHlch(32.11, 50.47, 289.81°)
OKLaboklab(42.07% -0.0142 -0.1366)
OKLCHoklch(42.07% 0.137 264)
XYZxyz(8.6001, 7.1332, 30.1958)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254797 #977525
analogous
#258097 #254797 #3C2597
triadic
#254797 #972547 #479725
tetradic
#254797 #972580 #977525 #25973C
square
#254797 #972580 #977525 #25973C
split-complementary
#254797 #973C25 #809725
monochromatic
#0D1935 #193066 #254797 #315EC8 #5F83D8

Accessibility & contrast

On white

8.65
#254797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#254797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254797
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254797#FFFFFF#000000##FFFFFF
##2547971.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11519A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #254797;
/* rgb */ color: rgb(37, 71, 151);
/* oklch */ color: oklch(42.1% 0.137 264.0);
Tailwind
colors: {
  custom: {
    50: '#7079b6',
    500: '#254797',
    950: '#000000',
  },
}
SCSS
$custom: #254797;
$custom-light: #7079b6;
$custom-dark: #000000;
JSON
{
  "hex": "#254797",
  "rgb": {
    "r": 37,
    "g": 71,
    "b": 151
  },
  "hsl": {
    "h": 222.105,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42074,
    "c": 0.13736,
    "h": 264
  },
  "luminance": 0.07134
}

Semantic roles & 50–950 ramp

primary
#254797
secondary
#BDA05B
accent
#B444E4
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #254797

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

Preview Lab → · Contrast checker → · Palette generator →

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