#254F94#254F94

#254F94 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.6% C 0.123 H 259.8°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#254F94
RGBrgb(37, 79, 148)
HSLhsl(217, 60%, 36%)
HSVhsv(217, 75%, 58%)
CMYKcmyk(75%, 46.6%, 0%, 42%)
CIE-LABlab(34.24, 10.53, -42.23)
CIE-LCHlch(34.24, 43.52, 284.01°)
OKLaboklab(43.64% -0.0217 -0.121)
OKLCHoklch(43.64% 0.123 259.8)
XYZxyz(8.9023, 8.1224, 29.1098)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254F94 #946A25
analogous
#258794 #254F94 #332594
triadic
#254F94 #94254F #4F9425
tetradic
#254F94 #942587 #946A25 #259433
square
#254F94 #942587 #946A25 #259433
split-complementary
#254F94 #943325 #879425
monochromatic
#0D1B32 #193563 #254F94 #3169C5 #5D8BD6

Accessibility & contrast

On white

8.00
#254F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #254F94
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254F94#FFFFFF#000000##FFFFFF
##254F941.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5697
Deuteranopia (green-blind)
#134C93
Tritanopia (blue-blind)
#005F6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #254f94;
/* rgb */ color: rgb(37, 79, 148);
/* oklch */ color: oklch(43.6% 0.123 259.8);
Tailwind
colors: {
  custom: {
    50: '#6f7fb4',
    500: '#254f94',
    950: '#000000',
  },
}
SCSS
$custom: #254f94;
$custom-light: #6f7fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#254f94",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 148
  },
  "hsl": {
    "h": 217.297,
    "s": 60,
    "l": 36.275
  },
  "oklch": {
    "l": 0.43637,
    "c": 0.12295,
    "h": 259.8
  },
  "luminance": 0.08123
}

Semantic roles & 50–950 ramp

primary
#254F94
secondary
#BB9659
accent
#A745E3
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #254F94

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

Preview Lab → · Contrast checker → · Palette generator →

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