#254A8E#254A8E

#254A8E is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.1% C 0.121 H 261.3°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#254A8E
RGBrgb(37, 74, 142)
HSLhsl(219, 59%, 35%)
HSVhsv(219, 74%, 56%)
CMYKcmyk(73.9%, 47.9%, 0%, 44.3%)
CIE-LABlab(32.35, 11.54, -41.59)
CIE-LCHlch(32.35, 43.16, 285.51°)
OKLaboklab(42.06% -0.0181 -0.1192)
OKLCHoklch(42.06% 0.121 261.3)
XYZxyz(8.0925, 7.2430, 26.5575)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254A8E #8E6925
analogous
#257E8E #254A8E #34258E
triadic
#254A8E #8E254A #4A8E25
tetradic
#254A8E #8E257E #8E6925 #258E34
square
#254A8E #8E257E #8E6925 #258E34
split-complementary
#254A8E #8E3425 #7E8E25
monochromatic
#0C172D #18315D #254A8E #3263BF #5A85D4

Accessibility & contrast

On white

8.58
#254A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #254A8E
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254A8E#FFFFFF#000000##FFFFFF
##254A8E1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #254a8e;
/* rgb */ color: rgb(37, 74, 142);
/* oklch */ color: oklch(42.1% 0.121 261.3);
Tailwind
colors: {
  custom: {
    50: '#6e7caf',
    500: '#254a8e',
    950: '#000000',
  },
}
SCSS
$custom: #254a8e;
$custom-light: #6e7caf;
$custom-dark: #000000;
JSON
{
  "hex": "#254a8e",
  "rgb": {
    "r": 37,
    "g": 74,
    "b": 142
  },
  "hsl": {
    "h": 218.857,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.42061,
    "c": 0.12061,
    "h": 261.3
  },
  "luminance": 0.07244
}

Semantic roles & 50–950 ramp

primary
#254A8E
secondary
#B99656
accent
#AB46E2
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #254A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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