#254895#254895

#254895 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.1% C 0.133 H 263.4°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#254895
RGBrgb(37, 72, 149)
HSLhsl(221, 60%, 36%)
HSVhsv(221, 75%, 58%)
CMYKcmyk(75.2%, 51.7%, 0%, 41.6%)
CIE-LABlab(32.25, 15.64, -46.03)
CIE-LCHlch(32.25, 48.62, 288.77°)
OKLaboklab(42.14% -0.0153 -0.1323)
OKLCHoklch(42.14% 0.133 263.4)
XYZxyz(8.5032, 7.1970, 29.3690)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254895 #957225
analogous
#258095 #254895 #3A2595
triadic
#254895 #952548 #489525
tetradic
#254895 #952580 #957225 #25953A
square
#254895 #952580 #957225 #25953A
split-complementary
#254895 #953A25 #809525
monochromatic
#0D1933 #193064 #254895 #3160C6 #5E83D7

Accessibility & contrast

On white

8.61
#254895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#254895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254895
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254895#FFFFFF#000000##FFFFFF
##2548951.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195198
Deuteranopia (green-blind)
#004793
Tritanopia (blue-blind)
#005A67
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #254895;
/* rgb */ color: rgb(37, 72, 149);
/* oklch */ color: oklch(42.1% 0.133 263.4);
Tailwind
colors: {
  custom: {
    50: '#707ab5',
    500: '#254895',
    950: '#000000',
  },
}
SCSS
$custom: #254895;
$custom-light: #707ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#254895",
  "rgb": {
    "r": 37,
    "g": 72,
    "b": 149
  },
  "hsl": {
    "h": 221.25,
    "s": 60.215,
    "l": 36.471
  },
  "oklch": {
    "l": 0.42137,
    "c": 0.13322,
    "h": 263.4
  },
  "luminance": 0.07198
}

Semantic roles & 50–950 ramp

primary
#254895
secondary
#BC9D5A
accent
#B244E3
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #254895

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

Preview Lab → · Contrast checker → · Palette generator →

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