#254197#254197

#254197 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.8% C 0.145 H 266.3°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#254197
RGBrgb(37, 65, 151)
HSLhsl(225, 61%, 37%)
HSVhsv(225, 75%, 59%)
CMYKcmyk(75.5%, 57%, 0%, 40.8%)
CIE-LABlab(30.42, 21.19, -50.22)
CIE-LCHlch(30.42, 54.51, 292.88°)
OKLaboklab(40.8% -0.0094 -0.1448)
OKLCHoklch(40.8% 0.145 266.3)
XYZxyz(8.2372, 6.4074, 30.0748)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254197 #977B25
analogous
#257A97 #254197 #422597
triadic
#254197 #972541 #419725
tetradic
#254197 #97257A #977B25 #259742
square
#254197 #97257A #977B25 #259742
split-complementary
#254197 #974225 #7A9725
monochromatic
#0D1735 #192C66 #254197 #3156C8 #5F7CD8

Accessibility & contrast

On white

9.20
#254197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#254197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254197
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254197#FFFFFF#000000##FFFFFF
##2541971.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #254197;
/* rgb */ color: rgb(37, 65, 151);
/* oklch */ color: oklch(40.8% 0.145 266.3);
Tailwind
colors: {
  custom: {
    50: '#7175b6',
    500: '#254197',
    950: '#000000',
  },
}
SCSS
$custom: #254197;
$custom-light: #7175b6;
$custom-dark: #000000;
JSON
{
  "hex": "#254197",
  "rgb": {
    "r": 37,
    "g": 65,
    "b": 151
  },
  "hsl": {
    "h": 225.263,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40796,
    "c": 0.14508,
    "h": 266.3
  },
  "luminance": 0.06408
}

Semantic roles & 50–950 ramp

primary
#254197
secondary
#BDA55B
accent
#BD44E4
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #254197

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

Preview Lab → · Contrast checker → · Palette generator →

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