#254898#254898

#254898 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.4% C 0.138 H 263.7°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#254898
RGBrgb(37, 72, 152)
HSLhsl(222, 61%, 37%)
HSVhsv(222, 76%, 60%)
CMYKcmyk(75.7%, 52.6%, 0%, 40.4%)
CIE-LABlab(32.47, 16.82, -47.51)
CIE-LCHlch(32.47, 50.40, 289.50°)
OKLaboklab(42.37% -0.015 -0.1367)
OKLCHoklch(42.37% 0.138 263.7)
XYZxyz(8.7458, 7.2941, 30.6466)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254898 #987525
analogous
#258298 #254898 #3B2598
triadic
#254898 #982548 #489825
tetradic
#254898 #982582 #987525 #25983B
square
#254898 #982582 #987525 #25983B
split-complementary
#254898 #983B25 #829825
monochromatic
#0D1936 #193167 #254898 #315FC9 #5F84D8

Accessibility & contrast

On white

8.54
#254898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#254898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254898
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254898#FFFFFF#000000##FFFFFF
##2548981.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13529B
Deuteranopia (green-blind)
#004796
Tritanopia (blue-blind)
#005B69
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #254898;
/* rgb */ color: rgb(37, 72, 152);
/* oklch */ color: oklch(42.4% 0.138 263.7);
Tailwind
colors: {
  custom: {
    50: '#707ab7',
    500: '#254898',
    950: '#000000',
  },
}
SCSS
$custom: #254898;
$custom-light: #707ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#254898",
  "rgb": {
    "r": 37,
    "g": 72,
    "b": 152
  },
  "hsl": {
    "h": 221.739,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4237,
    "c": 0.1375,
    "h": 263.7
  },
  "luminance": 0.07295
}

Semantic roles & 50–950 ramp

primary
#254898
secondary
#BDA05C
accent
#B344E4
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #254898

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

Preview Lab → · Contrast checker → · Palette generator →

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