#254297#254297

#254297 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.0% C 0.144 H 265.9°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#254297
RGBrgb(37, 66, 151)
HSLhsl(225, 61%, 37%)
HSVhsv(225, 75%, 59%)
CMYKcmyk(75.5%, 56.3%, 0%, 40.8%)
CIE-LABlab(30.70, 20.51, -49.77)
CIE-LCHlch(30.70, 53.83, 292.40°)
OKLaboklab(41.01% -0.0102 -0.1434)
OKLCHoklch(41.01% 0.144 265.9)
XYZxyz(8.2951, 6.5232, 30.0941)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254297 #977A25
analogous
#257B97 #254297 #412597
triadic
#254297 #972542 #429725
tetradic
#254297 #97257B #977A25 #259741
square
#254297 #97257B #977A25 #259741
split-complementary
#254297 #974125 #7B9725
monochromatic
#0D1735 #192D66 #254297 #3157C8 #5F7DD8

Accessibility & contrast

On white

9.11
#254297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#254297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254297
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254297#FFFFFF#000000##FFFFFF
##2542971.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #254297;
/* rgb */ color: rgb(37, 66, 151);
/* oklch */ color: oklch(41.0% 0.144 265.9);
Tailwind
colors: {
  custom: {
    50: '#7175b6',
    500: '#254297',
    950: '#000000',
  },
}
SCSS
$custom: #254297;
$custom-light: #7175b6;
$custom-dark: #000000;
JSON
{
  "hex": "#254297",
  "rgb": {
    "r": 37,
    "g": 66,
    "b": 151
  },
  "hsl": {
    "h": 224.737,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41006,
    "c": 0.1438,
    "h": 265.9
  },
  "luminance": 0.06524
}

Semantic roles & 50–950 ramp

primary
#254297
secondary
#BDA45B
accent
#BB44E4
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #254297

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

Preview Lab → · Contrast checker → · Palette generator →

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