#254FC9#254FC9

#254FC9 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.9% C 0.195 H 265.0°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#254FC9
RGBrgb(37, 79, 201)
HSLhsl(225, 69%, 47%)
HSVhsv(225, 82%, 79%)
CMYKcmyk(81.6%, 60.7%, 0%, 21.2%)
CIE-LABlab(38.20, 31.05, -67.24)
CIE-LCHlch(38.20, 74.07, 294.79°)
OKLaboklab(47.89% -0.0169 -0.1945)
OKLCHoklch(47.89% 0.195 265)
XYZxyz(14.0978, 10.2006, 56.4729)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254FC9 #C99F25
analogous
#25A1C9 #254FC9 #4D25C9
triadic
#254FC9 #C9254F #4FC925
tetradic
#254FC9 #C925A1 #C99F25 #25C94D
square
#254FC9 #C925A1 #C99F25 #25C94D
split-complementary
#254FC9 #C94D25 #A1C925
monochromatic
#122662 #1B3B95 #254FC9 #4D72DE #819BE8

Accessibility & contrast

On white

6.91
#254FC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#254FC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #254FC9
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254FC9#FFFFFF#000000##FFFFFF
##254FC91.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CD
Deuteranopia (green-blind)
#0053C7
Tritanopia (blue-blind)
#006F84
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #254fc9;
/* rgb */ color: rgb(37, 79, 201);
/* oklch */ color: oklch(47.9% 0.195 265.0);
Tailwind
colors: {
  custom: {
    50: '#7c7fda',
    500: '#254fc9',
    950: '#000000',
  },
}
SCSS
$custom: #254fc9;
$custom-light: #7c7fda;
$custom-dark: #000000;
JSON
{
  "hex": "#254fc9",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 201
  },
  "hsl": {
    "h": 224.634,
    "s": 68.908,
    "l": 46.667
  },
  "oklch": {
    "l": 0.47886,
    "c": 0.19527,
    "h": 265
  },
  "luminance": 0.10202
}

Semantic roles & 50–950 ramp

primary
#254FC9
secondary
#D0BA79
accent
#BF3CEC
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0B0A15
muted
#7C7C83

Preview Lab

Preview with #254FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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