#254897#254897

#254897 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.3% C 0.136 H 263.6°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#254897
RGBrgb(37, 72, 151)
HSLhsl(222, 61%, 37%)
HSVhsv(222, 75%, 59%)
CMYKcmyk(75.5%, 52.3%, 0%, 40.8%)
CIE-LABlab(32.40, 16.43, -47.02)
CIE-LCHlch(32.40, 49.80, 289.26°)
OKLaboklab(42.29% -0.0151 -0.1352)
OKLCHoklch(42.29% 0.136 263.6)
XYZxyz(8.6642, 7.2615, 30.2171)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254897 #977425
analogous
#258197 #254897 #3B2597
triadic
#254897 #972548 #489725
tetradic
#254897 #972581 #977425 #25973B
square
#254897 #972581 #977425 #25973B
split-complementary
#254897 #973B25 #819725
monochromatic
#0D1935 #193166 #254897 #315FC8 #5F84D8

Accessibility & contrast

On white

8.56
#254897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#254897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254897
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254897#FFFFFF#000000##FFFFFF
##2548971.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15529A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#005B68
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #254897;
/* rgb */ color: rgb(37, 72, 151);
/* oklch */ color: oklch(42.3% 0.136 263.6);
Tailwind
colors: {
  custom: {
    50: '#707ab6',
    500: '#254897',
    950: '#000000',
  },
}
SCSS
$custom: #254897;
$custom-light: #707ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#254897",
  "rgb": {
    "r": 37,
    "g": 72,
    "b": 151
  },
  "hsl": {
    "h": 221.579,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42292,
    "c": 0.13608,
    "h": 263.6
  },
  "luminance": 0.07262
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #254897

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

Preview Lab → · Contrast checker → · Palette generator →

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