#254A98#254A98

#254A98 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 42.8% C 0.135 H 262.9°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#254A98
RGBrgb(37, 74, 152)
HSLhsl(221, 61%, 37%)
HSVhsv(221, 76%, 60%)
CMYKcmyk(75.7%, 51.3%, 0%, 40.4%)
CIE-LABlab(33.04, 15.47, -46.58)
CIE-LCHlch(33.04, 49.08, 288.37°)
OKLaboklab(42.81% -0.0167 -0.1339)
OKLCHoklch(42.81% 0.135 262.9)
XYZxyz(8.8772, 7.5569, 30.6904)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254A98 #987325
analogous
#258498 #254A98 #3A2598
triadic
#254A98 #98254A #4A9825
tetradic
#254A98 #982584 #987325 #25983A
square
#254A98 #982584 #987325 #25983A
split-complementary
#254A98 #983A25 #849825
monochromatic
#0D1A36 #193267 #254A98 #3162C9 #5F86D8

Accessibility & contrast

On white

8.36
#254A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#254A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254A98
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254A98#FFFFFF#000000##FFFFFF
##254A981.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A539B
Deuteranopia (green-blind)
#004996
Tritanopia (blue-blind)
#005D6A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #254a98;
/* rgb */ color: rgb(37, 74, 152);
/* oklch */ color: oklch(42.8% 0.135 262.9);
Tailwind
colors: {
  custom: {
    50: '#707cb7',
    500: '#254a98',
    950: '#000000',
  },
}
SCSS
$custom: #254a98;
$custom-light: #707cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#254a98",
  "rgb": {
    "r": 37,
    "g": 74,
    "b": 152
  },
  "hsl": {
    "h": 220.696,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.42809,
    "c": 0.13494,
    "h": 262.9
  },
  "luminance": 0.07558
}

Semantic roles & 50–950 ramp

primary
#254A98
secondary
#BD9E5C
accent
#B044E4
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #254A98

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

Preview Lab → · Contrast checker → · Palette generator →

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