#254698#254698

#254698 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.9% C 0.140 H 264.5°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#254698
RGBrgb(37, 70, 152)
HSLhsl(223, 61%, 37%)
HSVhsv(223, 76%, 60%)
CMYKcmyk(75.7%, 53.9%, 0%, 40.4%)
CIE-LABlab(31.90, 18.18, -48.43)
CIE-LCHlch(31.90, 51.73, 290.57°)
OKLaboklab(41.94% -0.0133 -0.1394)
OKLCHoklch(41.94% 0.14 264.5)
XYZxyz(8.6186, 7.0397, 30.6042)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254698 #987725
analogous
#258098 #254698 #3E2598
triadic
#254698 #982546 #469825
tetradic
#254698 #982580 #987725 #25983E
square
#254698 #982580 #987725 #25983E
split-complementary
#254698 #983E25 #809825
monochromatic
#0D1936 #192F67 #254698 #315DC9 #5F82D8

Accessibility & contrast

On white

8.72
#254698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#254698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254698
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254698#FFFFFF#000000##FFFFFF
##2546981.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A519B
Deuteranopia (green-blind)
#004696
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #254698;
/* rgb */ color: rgb(37, 70, 152);
/* oklch */ color: oklch(41.9% 0.140 264.5);
Tailwind
colors: {
  custom: {
    50: '#7078b7',
    500: '#254698',
    950: '#000000',
  },
}
SCSS
$custom: #254698;
$custom-light: #7078b7;
$custom-dark: #000000;
JSON
{
  "hex": "#254698",
  "rgb": {
    "r": 37,
    "g": 70,
    "b": 152
  },
  "hsl": {
    "h": 222.783,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41938,
    "c": 0.14006,
    "h": 264.5
  },
  "luminance": 0.07041
}

Semantic roles & 50–950 ramp

primary
#254698
secondary
#BDA15C
accent
#B644E4
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #254698

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

Preview Lab → · Contrast checker → · Palette generator →

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