#254198#254198

#254198 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.9% C 0.146 H 266.4°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#254198
RGBrgb(37, 65, 152)
HSLhsl(225, 61%, 37%)
HSVhsv(225, 76%, 60%)
CMYKcmyk(75.7%, 57.2%, 0%, 40.4%)
CIE-LABlab(30.50, 21.58, -50.70)
CIE-LCHlch(30.50, 55.10, 293.06°)
OKLaboklab(40.88% -0.0093 -0.1462)
OKLCHoklch(40.88% 0.147 266.4)
XYZxyz(8.3188, 6.4400, 30.5043)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254198 #987C25
analogous
#257B98 #254198 #422598
triadic
#254198 #982541 #419825
tetradic
#254198 #98257B #987C25 #259842
square
#254198 #98257B #987C25 #259842
split-complementary
#254198 #984225 #7B9825
monochromatic
#0D1736 #192C67 #254198 #3156C9 #5F7DD8

Accessibility & contrast

On white

9.18
#254198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#254198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254198
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254198#FFFFFF#000000##FFFFFF
##2541981.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#005666
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #254198;
/* rgb */ color: rgb(37, 65, 152);
/* oklch */ color: oklch(40.9% 0.146 266.4);
Tailwind
colors: {
  custom: {
    50: '#7175b7',
    500: '#254198',
    950: '#000000',
  },
}
SCSS
$custom: #254198;
$custom-light: #7175b7;
$custom-dark: #000000;
JSON
{
  "hex": "#254198",
  "rgb": {
    "r": 37,
    "g": 65,
    "b": 152
  },
  "hsl": {
    "h": 225.391,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4088,
    "c": 0.1465,
    "h": 266.4
  },
  "luminance": 0.06441
}

Semantic roles & 50–950 ramp

primary
#254198
secondary
#BDA55C
accent
#BD44E4
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #254198

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

Preview Lab → · Contrast checker → · Palette generator →

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