#254A8F#254A8F

#254A8F is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.1% C 0.122 H 261.5°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#254A8F
RGBrgb(37, 74, 143)
HSLhsl(219, 59%, 35%)
HSVhsv(219, 74%, 56%)
CMYKcmyk(74.1%, 48.3%, 0%, 43.9%)
CIE-LABlab(32.42, 11.93, -42.10)
CIE-LCHlch(32.42, 43.75, 285.83°)
OKLaboklab(42.13% -0.018 -0.1207)
OKLCHoklch(42.13% 0.122 261.5)
XYZxyz(8.1679, 7.2732, 26.9547)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254A8F #8F6A25
analogous
#257F8F #254A8F #35258F
triadic
#254A8F #8F254A #4A8F25
tetradic
#254A8F #8F257F #8F6A25 #258F35
square
#254A8F #8F257F #8F6A25 #258F35
split-complementary
#254A8F #8F3525 #7F8F25
monochromatic
#0C182E #18315E #254A8F #3263C0 #5A85D4

Accessibility & contrast

On white

8.55
#254A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#254A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254A8F
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254A8F#FFFFFF#000000##FFFFFF
##254A8F1.008.552.458.55
#FFFFFF8.551.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255192
Deuteranopia (green-blind)
#0A488E
Tritanopia (blue-blind)
#005A65
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #254a8f;
/* rgb */ color: rgb(37, 74, 143);
/* oklch */ color: oklch(42.1% 0.122 261.5);
Tailwind
colors: {
  custom: {
    50: '#6e7cb0',
    500: '#254a8f',
    950: '#000000',
  },
}
SCSS
$custom: #254a8f;
$custom-light: #6e7cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#254a8f",
  "rgb": {
    "r": 37,
    "g": 74,
    "b": 143
  },
  "hsl": {
    "h": 219.057,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.42134,
    "c": 0.12205,
    "h": 261.5
  },
  "luminance": 0.07274
}

Semantic roles & 50–950 ramp

primary
#254A8F
secondary
#B99757
accent
#AC46E2
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #254A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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