#254271#254271

#254271 is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.2% C 0.088 H 259.6°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#254271
RGBrgb(37, 66, 113)
HSLhsl(217, 51%, 29%)
HSVhsv(217, 67%, 44%)
CMYKcmyk(67.3%, 41.6%, 0%, 55.7%)
CIE-LABlab(28.06, 5.67, -30.39)
CIE-LCHlch(28.06, 30.91, 280.57°)
OKLaboklab(38.15% -0.0159 -0.0865)
OKLCHoklch(38.15% 0.088 259.6)
XYZxyz(5.6907, 5.4815, 16.3777)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254271 #715425
analogous
#256871 #254271 #2E2571
triadic
#254271 #712542 #427125
tetradic
#254271 #712568 #715425 #25712E
square
#254271 #712568 #715425 #25712E
split-complementary
#254271 #712E25 #687125
monochromatic
#080D17 #162743 #254271 #345D9F #4C7AC4

Accessibility & contrast

On white

10.02
#254271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#254271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254271
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254271#FFFFFF#000000##FFFFFF
##2542711.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4673
Deuteranopia (green-blind)
#223F70
Tritanopia (blue-blind)
#004D54
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #254271;
/* rgb */ color: rgb(37, 66, 113);
/* oklch */ color: oklch(38.2% 0.088 259.6);
Tailwind
colors: {
  custom: {
    50: '#68769a',
    500: '#254271',
    950: '#000000',
  },
}
SCSS
$custom: #254271;
$custom-light: #68769a;
$custom-dark: #000000;
JSON
{
  "hex": "#254271",
  "rgb": {
    "r": 37,
    "g": 66,
    "b": 113
  },
  "hsl": {
    "h": 217.105,
    "s": 50.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.38153,
    "c": 0.08791,
    "h": 259.6
  },
  "luminance": 0.05482
}

Semantic roles & 50–950 ramp

primary
#254271
secondary
#A4834E
accent
#A54EDA
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #254271

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

Preview Lab → · Contrast checker → · Palette generator →

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