#254A97#254A97

#254A97 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 42.7% C 0.134 H 262.8°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#254A97
RGBrgb(37, 74, 151)
HSLhsl(221, 61%, 37%)
HSVhsv(221, 75%, 59%)
CMYKcmyk(75.5%, 51%, 0%, 40.8%)
CIE-LABlab(32.97, 15.07, -46.08)
CIE-LCHlch(32.97, 48.49, 288.11°)
OKLaboklab(42.73% -0.0168 -0.1325)
OKLCHoklch(42.73% 0.134 262.8)
XYZxyz(8.7956, 7.5243, 30.2609)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254A97 #977225
analogous
#258397 #254A97 #392597
triadic
#254A97 #97254A #4A9725
tetradic
#254A97 #972583 #977225 #259739
square
#254A97 #972583 #977225 #259739
split-complementary
#254A97 #973925 #839725
monochromatic
#0D1A35 #193266 #254A97 #3162C8 #5F86D8

Accessibility & contrast

On white

8.38
#254A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#254A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254A97
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254A97#FFFFFF#000000##FFFFFF
##254A971.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C539A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#005C69
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #254a97;
/* rgb */ color: rgb(37, 74, 151);
/* oklch */ color: oklch(42.7% 0.134 262.8);
Tailwind
colors: {
  custom: {
    50: '#707cb6',
    500: '#254a97',
    950: '#000000',
  },
}
SCSS
$custom: #254a97;
$custom-light: #707cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#254a97",
  "rgb": {
    "r": 37,
    "g": 74,
    "b": 151
  },
  "hsl": {
    "h": 220.526,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42732,
    "c": 0.13352,
    "h": 262.8
  },
  "luminance": 0.07525
}

Semantic roles & 50–950 ramp

primary
#254A97
secondary
#BD9D5B
accent
#B044E4
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #254A97

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

Preview Lab → · Contrast checker → · Palette generator →

#254A97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva