#254F8F#254F8F

#254F8F is a dark, moderate blue. Relative luminance 0.080; OKLCH L 43.3% C 0.116 H 258.7°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#254F8F
RGBrgb(37, 79, 143)
HSLhsl(216, 59%, 35%)
HSVhsv(216, 74%, 56%)
CMYKcmyk(74.1%, 44.8%, 0%, 43.9%)
CIE-LABlab(33.92, 8.58, -39.70)
CIE-LCHlch(33.92, 40.62, 282.19°)
OKLaboklab(43.29% -0.0227 -0.1136)
OKLCHoklch(43.29% 0.116 258.7)
XYZxyz(8.5151, 7.9675, 27.0704)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254F8F #8F6525
analogous
#25848F #254F8F #30258F
triadic
#254F8F #8F254F #4F8F25
tetradic
#254F8F #8F2584 #8F6525 #258F30
square
#254F8F #8F2584 #8F6525 #258F30
split-complementary
#254F8F #8F3025 #848F25
monochromatic
#0C192E #18345E #254F8F #326AC0 #5A8BD4

Accessibility & contrast

On white

8.10
#254F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#254F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254F8F
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254F8F#FFFFFF#000000##FFFFFF
##254F8F1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5591
Deuteranopia (green-blind)
#1C4B8E
Tritanopia (blue-blind)
#005E68
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #254f8f;
/* rgb */ color: rgb(37, 79, 143);
/* oklch */ color: oklch(43.3% 0.116 258.7);
Tailwind
colors: {
  custom: {
    50: '#6e7fb0',
    500: '#254f8f',
    950: '#000000',
  },
}
SCSS
$custom: #254f8f;
$custom-light: #6e7fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#254f8f",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 143
  },
  "hsl": {
    "h": 216.226,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.43285,
    "c": 0.11582,
    "h": 258.7
  },
  "luminance": 0.07968
}

Semantic roles & 50–950 ramp

primary
#254F8F
secondary
#B99257
accent
#A446E2
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #254F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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