#254E98#254E98

#254E98 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.7% C 0.130 H 261.1°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#254E98
RGBrgb(37, 78, 152)
HSLhsl(219, 61%, 37%)
HSVhsv(219, 76%, 60%)
CMYKcmyk(75.7%, 48.7%, 0%, 40.4%)
CIE-LABlab(34.21, 12.77, -44.70)
CIE-LCHlch(34.21, 46.49, 285.94°)
OKLaboklab(43.7% -0.0201 -0.1283)
OKLCHoklch(43.7% 0.13 261.1)
XYZxyz(9.1528, 8.1081, 30.7823)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254E98 #986F25
analogous
#258898 #254E98 #362598
triadic
#254E98 #98254E #4E9825
tetradic
#254E98 #982588 #986F25 #259836
square
#254E98 #982588 #986F25 #259836
split-complementary
#254E98 #983625 #889825
monochromatic
#0D1B36 #193567 #254E98 #3167C9 #5F8AD8

Accessibility & contrast

On white

8.01
#254E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#254E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254E98
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254E98#FFFFFF#000000##FFFFFF
##254E981.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25569B
Deuteranopia (green-blind)
#034B97
Tritanopia (blue-blind)
#00606B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #254e98;
/* rgb */ color: rgb(37, 78, 152);
/* oklch */ color: oklch(43.7% 0.130 261.1);
Tailwind
colors: {
  custom: {
    50: '#707fb7',
    500: '#254e98',
    950: '#000000',
  },
}
SCSS
$custom: #254e98;
$custom-light: #707fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#254e98",
  "rgb": {
    "r": 37,
    "g": 78,
    "b": 152
  },
  "hsl": {
    "h": 218.609,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.43699,
    "c": 0.12988,
    "h": 261.1
  },
  "luminance": 0.08109
}

Semantic roles & 50–950 ramp

primary
#254E98
secondary
#BD9A5C
accent
#AB44E4
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #254E98

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

Preview Lab → · Contrast checker → · Palette generator →

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