#254998#254998

#254998 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.6% C 0.136 H 263.3°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#254998
RGBrgb(37, 73, 152)
HSLhsl(221, 61%, 37%)
HSVhsv(221, 76%, 60%)
CMYKcmyk(75.7%, 52%, 0%, 40.4%)
CIE-LABlab(32.75, 16.14, -47.04)
CIE-LCHlch(32.75, 49.74, 288.94°)
OKLaboklab(42.59% -0.0158 -0.1353)
OKLCHoklch(42.59% 0.136 263.3)
XYZxyz(8.8110, 7.4244, 30.6684)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254998 #987425
analogous
#258398 #254998 #3A2598
triadic
#254998 #982549 #499825
tetradic
#254998 #982583 #987425 #25983A
square
#254998 #982583 #987425 #25983A
split-complementary
#254998 #983A25 #839825
monochromatic
#0D1A36 #193167 #254998 #3161C9 #5F85D8

Accessibility & contrast

On white

8.45
#254998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#254998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254998
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254998#FFFFFF#000000##FFFFFF
##2549981.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17539B
Deuteranopia (green-blind)
#004896
Tritanopia (blue-blind)
#005C69
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #254998;
/* rgb */ color: rgb(37, 73, 152);
/* oklch */ color: oklch(42.6% 0.136 263.3);
Tailwind
colors: {
  custom: {
    50: '#707bb7',
    500: '#254998',
    950: '#000000',
  },
}
SCSS
$custom: #254998;
$custom-light: #707bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#254998",
  "rgb": {
    "r": 37,
    "g": 73,
    "b": 152
  },
  "hsl": {
    "h": 221.217,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.42589,
    "c": 0.13622,
    "h": 263.3
  },
  "luminance": 0.07425
}

Semantic roles & 50–950 ramp

primary
#254998
secondary
#BD9F5C
accent
#B244E4
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #254998

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

Preview Lab → · Contrast checker → · Palette generator →

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