#254495#254495

#254495 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.3% C 0.138 H 265.0°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#254495
RGBrgb(37, 68, 149)
HSLhsl(223, 60%, 36%)
HSVhsv(223, 75%, 58%)
CMYKcmyk(75.2%, 54.4%, 0%, 41.6%)
CIE-LABlab(31.11, 18.37, -47.88)
CIE-LCHlch(31.11, 51.28, 290.98°)
OKLaboklab(41.27% -0.0119 -0.1379)
OKLCHoklch(41.27% 0.138 265)
XYZxyz(8.2530, 6.6966, 29.2856)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254495 #957625
analogous
#257C95 #254495 #3E2595
triadic
#254495 #952544 #449525
tetradic
#254495 #95257C #957625 #25953E
square
#254495 #95257C #957625 #25953E
split-complementary
#254495 #953E25 #7C9525
monochromatic
#0D1733 #192E64 #254495 #315AC6 #5E7FD7

Accessibility & contrast

On white

8.98
#254495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#254495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254495
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254495#FFFFFF#000000##FFFFFF
##2544951.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074F98
Deuteranopia (green-blind)
#004493
Tritanopia (blue-blind)
#005865
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #254495;
/* rgb */ color: rgb(37, 68, 149);
/* oklch */ color: oklch(41.3% 0.138 265.0);
Tailwind
colors: {
  custom: {
    50: '#7077b5',
    500: '#254495',
    950: '#000000',
  },
}
SCSS
$custom: #254495;
$custom-light: #7077b5;
$custom-dark: #000000;
JSON
{
  "hex": "#254495",
  "rgb": {
    "r": 37,
    "g": 68,
    "b": 149
  },
  "hsl": {
    "h": 223.393,
    "s": 60.215,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41267,
    "c": 0.13838,
    "h": 265
  },
  "luminance": 0.06697
}

Semantic roles & 50–950 ramp

primary
#254495
secondary
#BCA15A
accent
#B744E3
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #254495

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

Preview Lab → · Contrast checker → · Palette generator →

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