#254E8F#254E8F

#254E8F is a dark, moderate blue. Relative luminance 0.078; OKLCH L 43.1% C 0.117 H 259.3°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#254E8F
RGBrgb(37, 78, 143)
HSLhsl(217, 59%, 35%)
HSVhsv(217, 74%, 56%)
CMYKcmyk(74.1%, 45.5%, 0%, 43.9%)
CIE-LABlab(33.61, 9.24, -40.18)
CIE-LCHlch(33.61, 41.23, 282.96°)
OKLaboklab(43.05% -0.0217 -0.115)
OKLCHoklch(43.05% 0.117 259.3)
XYZxyz(8.4435, 7.8243, 27.0465)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254E8F #8F6625
analogous
#25838F #254E8F #31258F
triadic
#254E8F #8F254E #4E8F25
tetradic
#254E8F #8F2583 #8F6625 #258F31
square
#254E8F #8F2583 #8F6625 #258F31
split-complementary
#254E8F #8F3125 #838F25
monochromatic
#0C192E #18335E #254E8F #3269C0 #5A89D4

Accessibility & contrast

On white

8.19
#254E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#254E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254E8F
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254E8F#FFFFFF#000000##FFFFFF
##254E8F1.008.192.578.19
#FFFFFF8.191.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5491
Deuteranopia (green-blind)
#194B8E
Tritanopia (blue-blind)
#005D67
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #254e8f;
/* rgb */ color: rgb(37, 78, 143);
/* oklch */ color: oklch(43.1% 0.117 259.3);
Tailwind
colors: {
  custom: {
    50: '#6e7fb0',
    500: '#254e8f',
    950: '#000000',
  },
}
SCSS
$custom: #254e8f;
$custom-light: #6e7fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#254e8f",
  "rgb": {
    "r": 37,
    "g": 78,
    "b": 143
  },
  "hsl": {
    "h": 216.792,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.43053,
    "c": 0.11705,
    "h": 259.3
  },
  "luminance": 0.07825
}

Semantic roles & 50–950 ramp

primary
#254E8F
secondary
#B99357
accent
#A646E2
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #254E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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