#254C98#254C98

#254C98 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.3% C 0.132 H 262.0°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#254C98
RGBrgb(37, 76, 152)
HSLhsl(220, 61%, 37%)
HSVhsv(220, 76%, 60%)
CMYKcmyk(75.7%, 50%, 0%, 40.4%)
CIE-LABlab(33.62, 14.12, -45.64)
CIE-LCHlch(33.62, 47.77, 287.19°)
OKLaboklab(43.25% -0.0184 -0.1311)
OKLCHoklch(43.25% 0.132 262)
XYZxyz(9.0129, 7.8282, 30.7357)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254C98 #987125
analogous
#258698 #254C98 #372598
triadic
#254C98 #98254C #4C9825
tetradic
#254C98 #982586 #987125 #259837
square
#254C98 #982586 #987125 #259837
split-complementary
#254C98 #983725 #869825
monochromatic
#0D1B36 #193367 #254C98 #3165C9 #5F88D8

Accessibility & contrast

On white

8.18
#254C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#254C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254C98
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254C98#FFFFFF#000000##FFFFFF
##254C981.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20559B
Deuteranopia (green-blind)
#004A96
Tritanopia (blue-blind)
#005E6A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #254c98;
/* rgb */ color: rgb(37, 76, 152);
/* oklch */ color: oklch(43.3% 0.132 262.0);
Tailwind
colors: {
  custom: {
    50: '#707db7',
    500: '#254c98',
    950: '#000000',
  },
}
SCSS
$custom: #254c98;
$custom-light: #707db7;
$custom-dark: #000000;
JSON
{
  "hex": "#254c98",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 152
  },
  "hsl": {
    "h": 219.652,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.43252,
    "c": 0.1324,
    "h": 262
  },
  "luminance": 0.07829
}

Semantic roles & 50–950 ramp

primary
#254C98
secondary
#BD9C5C
accent
#AE44E4
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #254C98

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

Preview Lab → · Contrast checker → · Palette generator →

#254C98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva