#254170#254170

#254170 is a dark, moderate blue. Relative luminance 0.053; OKLCH L 37.8% C 0.088 H 260.2°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#254170
RGBrgb(37, 65, 112)
HSLhsl(218, 50%, 29%)
HSVhsv(218, 67%, 44%)
CMYKcmyk(67%, 42%, 0%, 56.1%)
CIE-LABlab(27.69, 5.97, -30.35)
CIE-LCHlch(27.69, 30.93, 281.12°)
OKLaboklab(37.84% -0.015 -0.0864)
OKLCHoklch(37.84% 0.088 260.2)
XYZxyz(5.5768, 5.3432, 16.0635)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254170 #705425
analogous
#256770 #254170 #2F2570
triadic
#254170 #702541 #417025
tetradic
#254170 #702567 #705425 #25702F
square
#254170 #702567 #705425 #25702F
split-complementary
#254170 #702F25 #677025
monochromatic
#080D17 #162642 #254170 #345C9E #4C78C4

Accessibility & contrast

On white

10.15
#254170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#254170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254170
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254170#FFFFFF#000000##FFFFFF
##2541701.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4572
Deuteranopia (green-blind)
#213E6F
Tritanopia (blue-blind)
#004C53
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #254170;
/* rgb */ color: rgb(37, 65, 112);
/* oklch */ color: oklch(37.8% 0.088 260.2);
Tailwind
colors: {
  custom: {
    50: '#687599',
    500: '#254170',
    950: '#000000',
  },
}
SCSS
$custom: #254170;
$custom-light: #687599;
$custom-dark: #000000;
JSON
{
  "hex": "#254170",
  "rgb": {
    "r": 37,
    "g": 65,
    "b": 112
  },
  "hsl": {
    "h": 217.6,
    "s": 50.336,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37844,
    "c": 0.08766,
    "h": 260.2
  },
  "luminance": 0.05344
}

Semantic roles & 50–950 ramp

primary
#254170
secondary
#A3834E
accent
#A64EDA
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #254170

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

Preview Lab → · Contrast checker → · Palette generator →

#254170 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva