#254070#254070

#254070 is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.6% C 0.089 H 261.1°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#254070
RGBrgb(37, 64, 112)
HSLhsl(218, 50%, 29%)
HSVhsv(218, 67%, 44%)
CMYKcmyk(67%, 42.9%, 0%, 56.1%)
CIE-LABlab(27.38, 6.65, -30.85)
CIE-LCHlch(27.38, 31.56, 282.17°)
OKLaboklab(37.6% -0.0138 -0.0878)
OKLCHoklch(37.6% 0.089 261.1)
XYZxyz(5.5199, 5.2294, 16.0446)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254070 #705525
analogous
#256670 #254070 #302570
triadic
#254070 #702540 #407025
tetradic
#254070 #702566 #705525 #257030
square
#254070 #702566 #705525 #257030
split-complementary
#254070 #703025 #667025
monochromatic
#080D17 #162642 #254070 #345A9E #4C77C4

Accessibility & contrast

On white

10.26
#254070 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#254070 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254070
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254070#FFFFFF#000000##FFFFFF
##2540701.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4472
Deuteranopia (green-blind)
#1F3D6F
Tritanopia (blue-blind)
#004B52
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #254070;
/* rgb */ color: rgb(37, 64, 112);
/* oklch */ color: oklch(37.6% 0.089 261.1);
Tailwind
colors: {
  custom: {
    50: '#687499',
    500: '#254070',
    950: '#000000',
  },
}
SCSS
$custom: #254070;
$custom-light: #687499;
$custom-dark: #000000;
JSON
{
  "hex": "#254070",
  "rgb": {
    "r": 37,
    "g": 64,
    "b": 112
  },
  "hsl": {
    "h": 218.4,
    "s": 50.336,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37602,
    "c": 0.08892,
    "h": 261.1
  },
  "luminance": 0.0523
}

Semantic roles & 50–950 ramp

primary
#254070
secondary
#A3844E
accent
#A74EDA
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #254070

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

Preview Lab → · Contrast checker → · Palette generator →

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