#254F8E#254F8E

#254F8E is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.2% C 0.114 H 258.5°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#254F8E
RGBrgb(37, 79, 142)
HSLhsl(216, 59%, 35%)
HSVhsv(216, 74%, 56%)
CMYKcmyk(73.9%, 44.4%, 0%, 44.3%)
CIE-LABlab(33.85, 8.18, -39.19)
CIE-LCHlch(33.85, 40.04, 281.80°)
OKLaboklab(43.22% -0.0229 -0.1121)
OKLCHoklch(43.22% 0.114 258.5)
XYZxyz(8.4396, 7.9374, 26.6732)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254F8E #8E6425
analogous
#25838E #254F8E #30258E
triadic
#254F8E #8E254F #4F8E25
tetradic
#254F8E #8E2583 #8E6425 #258E30
square
#254F8E #8E2583 #8E6425 #258E30
split-complementary
#254F8E #8E3025 #838E25
monochromatic
#0C192D #18345D #254F8E #326ABF #5A8AD4

Accessibility & contrast

On white

8.12
#254F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #254F8E
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254F8E#FFFFFF#000000##FFFFFF
##254F8E1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305590
Deuteranopia (green-blind)
#1D4B8D
Tritanopia (blue-blind)
#005E67
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #254f8e;
/* rgb */ color: rgb(37, 79, 142);
/* oklch */ color: oklch(43.2% 0.114 258.5);
Tailwind
colors: {
  custom: {
    50: '#6e7faf',
    500: '#254f8e',
    950: '#000000',
  },
}
SCSS
$custom: #254f8e;
$custom-light: #6e7faf;
$custom-dark: #000000;
JSON
{
  "hex": "#254f8e",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 142
  },
  "hsl": {
    "h": 216,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.43216,
    "c": 0.1144,
    "h": 258.5
  },
  "luminance": 0.07938
}

Semantic roles & 50–950 ramp

primary
#254F8E
secondary
#B99156
accent
#A346E2
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #254F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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