#254174#254174

#254174 is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.1% C 0.094 H 261.4°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#254174
RGBrgb(37, 65, 116)
HSLhsl(219, 52%, 30%)
HSVhsv(219, 68%, 45%)
CMYKcmyk(68.1%, 44%, 0%, 54.5%)
CIE-LABlab(27.94, 7.51, -32.49)
CIE-LCHlch(27.94, 33.35, 283.02°)
OKLaboklab(38.12% -0.014 -0.0926)
OKLCHoklch(38.12% 0.094 261.4)
XYZxyz(5.8045, 5.4343, 17.2626)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254174 #745825
analogous
#256974 #254174 #302574
triadic
#254174 #742541 #417425
tetradic
#254174 #742569 #745825 #257430
square
#254174 #742569 #745825 #257430
split-complementary
#254174 #743025 #697425
monochromatic
#070D17 #162746 #254174 #345BA2 #4D78C6

Accessibility & contrast

On white

10.06
#254174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#254174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254174
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254174#FFFFFF#000000##FFFFFF
##2541741.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4676
Deuteranopia (green-blind)
#1D3F73
Tritanopia (blue-blind)
#004D54
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #254174;
/* rgb */ color: rgb(37, 65, 116);
/* oklch */ color: oklch(38.1% 0.094 261.4);
Tailwind
colors: {
  custom: {
    50: '#69759c',
    500: '#254174',
    950: '#000000',
  },
}
SCSS
$custom: #254174;
$custom-light: #69759c;
$custom-dark: #000000;
JSON
{
  "hex": "#254174",
  "rgb": {
    "r": 37,
    "g": 65,
    "b": 116
  },
  "hsl": {
    "h": 218.734,
    "s": 51.634,
    "l": 30
  },
  "oklch": {
    "l": 0.38115,
    "c": 0.09371,
    "h": 261.4
  },
  "luminance": 0.05435
}

Semantic roles & 50–950 ramp

primary
#254174
secondary
#A7874E
accent
#A94DDB
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #254174

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

Preview Lab → · Contrast checker → · Palette generator →

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