#254A88#254A88

#254A88 is a dark, moderate blue. Relative luminance 0.071; OKLCH L 41.6% C 0.112 H 260.1°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#254A88
RGBrgb(37, 74, 136)
HSLhsl(218, 57%, 34%)
HSVhsv(218, 73%, 53%)
CMYKcmyk(72.8%, 45.6%, 0%, 46.7%)
CIE-LABlab(31.96, 9.19, -38.54)
CIE-LCHlch(31.96, 39.62, 283.42°)
OKLaboklab(41.63% -0.0192 -0.1103)
OKLCHoklch(41.63% 0.112 260.1)
XYZxyz(7.6541, 7.0676, 24.2486)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254A88 #886325
analogous
#257C88 #254A88 #322588
triadic
#254A88 #88254A #4A8825
tetradic
#254A88 #88257C #886325 #258832
square
#254A88 #88257C #886325 #258832
split-complementary
#254A88 #883225 #7C8825
monochromatic
#0B1628 #183058 #254A88 #3264B8 #5684D1

Accessibility & contrast

On white

8.70
#254A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#254A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254A88
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254A88#FFFFFF#000000##FFFFFF
##254A881.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B508A
Deuteranopia (green-blind)
#194787
Tritanopia (blue-blind)
#005862
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #254a88;
/* rgb */ color: rgb(37, 74, 136);
/* oklch */ color: oklch(41.6% 0.112 260.1);
Tailwind
colors: {
  custom: {
    50: '#6d7cab',
    500: '#254a88',
    950: '#000000',
  },
}
SCSS
$custom: #254a88;
$custom-light: #6d7cab;
$custom-dark: #000000;
JSON
{
  "hex": "#254a88",
  "rgb": {
    "r": 37,
    "g": 74,
    "b": 136
  },
  "hsl": {
    "h": 217.576,
    "s": 57.225,
    "l": 33.922
  },
  "oklch": {
    "l": 0.41631,
    "c": 0.11193,
    "h": 260.1
  },
  "luminance": 0.07068
}

Semantic roles & 50–950 ramp

primary
#254A88
secondary
#B69153
accent
#A747E0
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #254A88

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

Preview Lab → · Contrast checker → · Palette generator →

#254A88 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva