#254798#254798

#254798 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.2% C 0.139 H 264.2°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#254798
RGBrgb(37, 71, 152)
HSLhsl(222, 61%, 37%)
HSVhsv(222, 76%, 60%)
CMYKcmyk(75.7%, 53.3%, 0%, 40.4%)
CIE-LABlab(32.18, 17.50, -47.97)
CIE-LCHlch(32.18, 51.06, 290.04°)
OKLaboklab(42.15% -0.0141 -0.1381)
OKLCHoklch(42.15% 0.139 264.2)
XYZxyz(8.6817, 7.1658, 30.6253)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254798 #987625
analogous
#258198 #254798 #3D2598
triadic
#254798 #982547 #479825
tetradic
#254798 #982581 #987625 #25983D
square
#254798 #982581 #987625 #25983D
split-complementary
#254798 #983D25 #819825
monochromatic
#0D1936 #193067 #254798 #315EC9 #5F83D8

Accessibility & contrast

On white

8.63
#254798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #254798
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254798#FFFFFF#000000##FFFFFF
##2547981.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F519B
Deuteranopia (green-blind)
#004796
Tritanopia (blue-blind)
#005B68
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #254798;
/* rgb */ color: rgb(37, 71, 152);
/* oklch */ color: oklch(42.2% 0.139 264.2);
Tailwind
colors: {
  custom: {
    50: '#7079b7',
    500: '#254798',
    950: '#000000',
  },
}
SCSS
$custom: #254798;
$custom-light: #7079b7;
$custom-dark: #000000;
JSON
{
  "hex": "#254798",
  "rgb": {
    "r": 37,
    "g": 71,
    "b": 152
  },
  "hsl": {
    "h": 222.261,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.42153,
    "c": 0.13878,
    "h": 264.2
  },
  "luminance": 0.07167
}

Semantic roles & 50–950 ramp

primary
#254798
secondary
#BDA05C
accent
#B544E4
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #254798

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

Preview Lab → · Contrast checker → · Palette generator →

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