#254B98#254B98

#254B98 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.0% C 0.134 H 262.5°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#254B98
RGBrgb(37, 75, 152)
HSLhsl(220, 61%, 37%)
HSVhsv(220, 76%, 60%)
CMYKcmyk(75.7%, 50.7%, 0%, 40.4%)
CIE-LABlab(33.33, 14.79, -46.11)
CIE-LCHlch(33.33, 48.42, 287.78°)
OKLaboklab(43.03% -0.0175 -0.1325)
OKLCHoklch(43.03% 0.134 262.5)
XYZxyz(8.9445, 7.6915, 30.7129)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254B98 #987225
analogous
#258598 #254B98 #392598
triadic
#254B98 #98254B #4B9825
tetradic
#254B98 #982585 #987225 #259839
square
#254B98 #982585 #987225 #259839
split-complementary
#254B98 #983925 #859825
monochromatic
#0D1A36 #193367 #254B98 #3163C9 #5F87D8

Accessibility & contrast

On white

8.27
#254B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#254B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254B98
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254B98#FFFFFF#000000##FFFFFF
##254B981.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #254b98;
/* rgb */ color: rgb(37, 75, 152);
/* oklch */ color: oklch(43.0% 0.134 262.5);
Tailwind
colors: {
  custom: {
    50: '#707cb7',
    500: '#254b98',
    950: '#000000',
  },
}
SCSS
$custom: #254b98;
$custom-light: #707cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#254b98",
  "rgb": {
    "r": 37,
    "g": 75,
    "b": 152
  },
  "hsl": {
    "h": 220.174,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.43029,
    "c": 0.13367,
    "h": 262.5
  },
  "luminance": 0.07692
}

Semantic roles & 50–950 ramp

primary
#254B98
secondary
#BD9D5C
accent
#AF44E4
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #254B98

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

Preview Lab → · Contrast checker → · Palette generator →

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