#254FB9#254FB9

#254FB9 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.5% C 0.174 H 264.3°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#254FB9
RGBrgb(37, 79, 185)
HSLhsl(223, 67%, 44%)
HSVhsv(223, 80%, 73%)
CMYKcmyk(80%, 57.3%, 0%, 27.5%)
CIE-LABlab(36.90, 24.96, -60.01)
CIE-LCHlch(36.90, 64.99, 292.58°)
OKLaboklab(46.51% -0.0174 -0.1733)
OKLCHoklch(46.51% 0.174 264.3)
XYZxyz(12.3128, 9.4866, 47.0717)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254FB9 #B98F25
analogous
#2599B9 #254FB9 #4525B9
triadic
#254FB9 #B9254F #4FB925
tetradic
#254FB9 #B92599 #B98F25 #25B945
square
#254FB9 #B92599 #B98F25 #25B945
split-complementary
#254FB9 #B94525 #99B925
monochromatic
#112353 #1B3986 #254FB9 #426DD9 #7594E3

Accessibility & contrast

On white

7.25
#254FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#254FB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254FB9
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254FB9#FFFFFF#000000##FFFFFF
##254FB91.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBD
Deuteranopia (green-blind)
#0050B7
Tritanopia (blue-blind)
#006A7C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #254fb9;
/* rgb */ color: rgb(37, 79, 185);
/* oklch */ color: oklch(46.5% 0.174 264.3);
Tailwind
colors: {
  custom: {
    50: '#787fcf',
    500: '#254fb9',
    950: '#000000',
  },
}
SCSS
$custom: #254fb9;
$custom-light: #787fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#254fb9",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 185
  },
  "hsl": {
    "h": 222.973,
    "s": 66.667,
    "l": 43.529
  },
  "oklch": {
    "l": 0.46513,
    "c": 0.17421,
    "h": 264.3
  },
  "luminance": 0.09488
}

Semantic roles & 50–950 ramp

primary
#254FB9
secondary
#CBB16F
accent
#B93EEA
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0A14
muted
#7C7C82

Preview Lab

Preview with #254FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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