#254F98#254F98

#254F98 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 43.9% C 0.129 H 260.6°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#254F98
RGBrgb(37, 79, 152)
HSLhsl(218, 61%, 37%)
HSVhsv(218, 76%, 60%)
CMYKcmyk(75.7%, 48%, 0%, 40.4%)
CIE-LABlab(34.50, 12.10, -44.23)
CIE-LCHlch(34.50, 45.85, 285.30°)
OKLaboklab(43.93% -0.021 -0.1269)
OKLCHoklch(43.93% 0.129 260.6)
XYZxyz(9.2244, 8.2513, 30.8062)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254F98 #986E25
analogous
#258998 #254F98 #352598
triadic
#254F98 #98254F #4F9825
tetradic
#254F98 #982589 #986E25 #259835
square
#254F98 #982589 #986E25 #259835
split-complementary
#254F98 #983525 #899825
monochromatic
#0D1C36 #193567 #254F98 #3169C9 #5F8BD8

Accessibility & contrast

On white

7.92
#254F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#254F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254F98
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254F98#FFFFFF#000000##FFFFFF
##254F981.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28579B
Deuteranopia (green-blind)
#084C97
Tritanopia (blue-blind)
#00606C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #254f98;
/* rgb */ color: rgb(37, 79, 152);
/* oklch */ color: oklch(43.9% 0.129 260.6);
Tailwind
colors: {
  custom: {
    50: '#707fb7',
    500: '#254f98',
    950: '#000000',
  },
}
SCSS
$custom: #254f98;
$custom-light: #707fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#254f98",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 152
  },
  "hsl": {
    "h": 218.087,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.43925,
    "c": 0.12863,
    "h": 260.6
  },
  "luminance": 0.08252
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #254F98

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

Preview Lab → · Contrast checker → · Palette generator →

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