#254F95#254F95

#254F95 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 43.7% C 0.124 H 260.0°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#254F95
RGBrgb(37, 79, 149)
HSLhsl(218, 60%, 36%)
HSVhsv(218, 75%, 58%)
CMYKcmyk(75.2%, 47%, 0%, 41.6%)
CIE-LABlab(34.30, 10.92, -42.73)
CIE-LCHlch(34.30, 44.10, 284.34°)
OKLaboklab(43.71% -0.0215 -0.1225)
OKLCHoklch(43.71% 0.124 260)
XYZxyz(8.9818, 8.1542, 29.5285)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254F95 #956B25
analogous
#258795 #254F95 #332595
triadic
#254F95 #95254F #4F9525
tetradic
#254F95 #952587 #956B25 #259533
square
#254F95 #952587 #956B25 #259533
split-complementary
#254F95 #953325 #879525
monochromatic
#0D1B33 #193564 #254F95 #3169C6 #5E8BD7

Accessibility & contrast

On white

7.98
#254F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#254F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254F95
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254F95#FFFFFF#000000##FFFFFF
##254F951.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5698
Deuteranopia (green-blind)
#114C94
Tritanopia (blue-blind)
#005F6A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #254f95;
/* rgb */ color: rgb(37, 79, 149);
/* oklch */ color: oklch(43.7% 0.124 260.0);
Tailwind
colors: {
  custom: {
    50: '#6f7fb5',
    500: '#254f95',
    950: '#000000',
  },
}
SCSS
$custom: #254f95;
$custom-light: #6f7fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#254f95",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 149
  },
  "hsl": {
    "h": 217.5,
    "s": 60.215,
    "l": 36.471
  },
  "oklch": {
    "l": 0.43708,
    "c": 0.12437,
    "h": 260
  },
  "luminance": 0.08155
}

Semantic roles & 50–950 ramp

primary
#254F95
secondary
#BC975A
accent
#A844E3
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #254F95

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

Preview Lab → · Contrast checker → · Palette generator →

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