#254097#254097

#254097 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.6% C 0.146 H 266.6°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#254097
RGBrgb(37, 64, 151)
HSLhsl(226, 61%, 37%)
HSVhsv(226, 75%, 59%)
CMYKcmyk(75.5%, 57.6%, 0%, 40.8%)
CIE-LABlab(30.14, 21.87, -50.67)
CIE-LCHlch(30.14, 55.19, 293.35°)
OKLaboklab(40.59% -0.0086 -0.1461)
OKLCHoklch(40.59% 0.146 266.6)
XYZxyz(8.1803, 6.2936, 30.0558)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254097 #977C25
analogous
#257997 #254097 #432597
triadic
#254097 #972540 #409725
tetradic
#254097 #972579 #977C25 #259743
square
#254097 #972579 #977C25 #259743
split-complementary
#254097 #974325 #799725
monochromatic
#0D1635 #192B66 #254097 #3155C8 #5F7BD8

Accessibility & contrast

On white

9.30
#254097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#254097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254097
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254097#FFFFFF#000000##FFFFFF
##2540971.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #254097;
/* rgb */ color: rgb(37, 64, 151);
/* oklch */ color: oklch(40.6% 0.146 266.6);
Tailwind
colors: {
  custom: {
    50: '#7174b6',
    500: '#254097',
    950: '#000000',
  },
}
SCSS
$custom: #254097;
$custom-light: #7174b6;
$custom-dark: #000000;
JSON
{
  "hex": "#254097",
  "rgb": {
    "r": 37,
    "g": 64,
    "b": 151
  },
  "hsl": {
    "h": 225.789,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40589,
    "c": 0.14637,
    "h": 266.6
  },
  "luminance": 0.06294
}

Semantic roles & 50–950 ramp

primary
#254097
secondary
#BDA65B
accent
#BE44E4
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #254097

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

Preview Lab → · Contrast checker → · Palette generator →

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