#254BA4#254BA4

#254BA4 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.0% C 0.151 H 263.8°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#254BA4
RGBrgb(37, 75, 164)
HSLhsl(222, 63%, 39%)
HSVhsv(222, 77%, 64%)
CMYKcmyk(77.4%, 54.3%, 0%, 35.7%)
CIE-LABlab(34.20, 19.49, -51.94)
CIE-LCHlch(34.20, 55.48, 290.56°)
OKLaboklab(43.97% -0.0161 -0.1497)
OKLCHoklch(43.97% 0.151 263.8)
XYZxyz(9.9775, 8.1047, 36.1533)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254BA4 #A47E25
analogous
#258BA4 #254BA4 #3E25A4
triadic
#254BA4 #A4254B #4BA425
tetradic
#254BA4 #A4258B #A47E25 #25A43E
square
#254BA4 #A4258B #A47E25 #25A43E
split-complementary
#254BA4 #A43E25 #8BA425
monochromatic
#0E1D40 #1A3472 #254BA4 #3564D1 #678ADD

Accessibility & contrast

On white

8.01
#254BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#254BA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254BA4
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254BA4#FFFFFF#000000##FFFFFF
##254BA41.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0357A7
Deuteranopia (green-blind)
#004BA2
Tritanopia (blue-blind)
#006170
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #254ba4;
/* rgb */ color: rgb(37, 75, 164);
/* oklch */ color: oklch(44.0% 0.151 263.8);
Tailwind
colors: {
  custom: {
    50: '#737cc0',
    500: '#254ba4',
    950: '#000000',
  },
}
SCSS
$custom: #254ba4;
$custom-light: #737cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#254ba4",
  "rgb": {
    "r": 37,
    "g": 75,
    "b": 164
  },
  "hsl": {
    "h": 222.047,
    "s": 63.184,
    "l": 39.412
  },
  "oklch": {
    "l": 0.43966,
    "c": 0.15054,
    "h": 263.8
  },
  "luminance": 0.08106
}

Semantic roles & 50–950 ramp

primary
#254BA4
secondary
#C2A662
accent
#B542E6
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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