#254098#254098

#254098 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.7% C 0.148 H 266.7°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#254098
RGBrgb(37, 64, 152)
HSLhsl(226, 61%, 37%)
HSVhsv(226, 76%, 60%)
CMYKcmyk(75.7%, 57.9%, 0%, 40.4%)
CIE-LABlab(30.22, 22.26, -51.15)
CIE-LCHlch(30.22, 55.78, 293.52°)
OKLaboklab(40.67% -0.0085 -0.1475)
OKLCHoklch(40.67% 0.148 266.7)
XYZxyz(8.2619, 6.3262, 30.4853)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254098 #987D25
analogous
#257A98 #254098 #442598
triadic
#254098 #982540 #409825
tetradic
#254098 #98257A #987D25 #259844
square
#254098 #98257A #987D25 #259844
split-complementary
#254098 #984425 #7A9825
monochromatic
#0D1736 #192B67 #254098 #3155C9 #5F7CD8

Accessibility & contrast

On white

9.27
#254098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#254098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254098
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254098#FFFFFF#000000##FFFFFF
##2540981.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #254098;
/* rgb */ color: rgb(37, 64, 152);
/* oklch */ color: oklch(40.7% 0.148 266.7);
Tailwind
colors: {
  custom: {
    50: '#7174b7',
    500: '#254098',
    950: '#000000',
  },
}
SCSS
$custom: #254098;
$custom-light: #7174b7;
$custom-dark: #000000;
JSON
{
  "hex": "#254098",
  "rgb": {
    "r": 37,
    "g": 64,
    "b": 152
  },
  "hsl": {
    "h": 225.913,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40673,
    "c": 0.14778,
    "h": 266.7
  },
  "luminance": 0.06327
}

Semantic roles & 50–950 ramp

primary
#254098
secondary
#BDA65C
accent
#BE44E4
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #254098

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

Preview Lab → · Contrast checker → · Palette generator →

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