#254277#254277

#254277 is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.6% C 0.097 H 261.4°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#254277
RGBrgb(37, 66, 119)
HSLhsl(219, 53%, 31%)
HSVhsv(219, 69%, 47%)
CMYKcmyk(68.9%, 44.5%, 0%, 53.3%)
CIE-LABlab(28.44, 7.99, -33.59)
CIE-LCHlch(28.44, 34.53, 283.38°)
OKLaboklab(38.56% -0.0145 -0.0959)
OKLCHoklch(38.56% 0.097 261.4)
XYZxyz(6.0398, 5.6211, 18.2159)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254277 #775A25
analogous
#256B77 #254277 #312577
triadic
#254277 #772542 #427725
tetradic
#254277 #77256B #775A25 #257731
square
#254277 #77256B #775A25 #257731
split-complementary
#254277 #773125 #6B7725
monochromatic
#080E1A #162848 #254277 #345CA6 #4E79C8

Accessibility & contrast

On white

9.89
#254277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#254277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254277
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254277#FFFFFF#000000##FFFFFF
##2542771.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294779
Deuteranopia (green-blind)
#1C4076
Tritanopia (blue-blind)
#004E56
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #254277;
/* rgb */ color: rgb(37, 66, 119);
/* oklch */ color: oklch(38.6% 0.097 261.4);
Tailwind
colors: {
  custom: {
    50: '#69759e',
    500: '#254277',
    950: '#000000',
  },
}
SCSS
$custom: #254277;
$custom-light: #69759e;
$custom-dark: #000000;
JSON
{
  "hex": "#254277",
  "rgb": {
    "r": 37,
    "g": 66,
    "b": 119
  },
  "hsl": {
    "h": 218.78,
    "s": 52.564,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38561,
    "c": 0.09695,
    "h": 261.4
  },
  "luminance": 0.05622
}

Semantic roles & 50–950 ramp

primary
#254277
secondary
#A9894E
accent
#A94CDC
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #254277

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

Preview Lab → · Contrast checker → · Palette generator →

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