#254A9C#254A9C

#254A9C is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.1% C 0.141 H 263.4°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#254A9C
RGBrgb(37, 74, 156)
HSLhsl(221, 62%, 38%)
HSVhsv(221, 76%, 61%)
CMYKcmyk(76.3%, 52.6%, 0%, 38.8%)
CIE-LABlab(33.33, 17.03, -48.54)
CIE-LCHlch(33.33, 51.44, 289.34°)
OKLaboklab(43.12% -0.0162 -0.1397)
OKLCHoklch(43.12% 0.141 263.4)
XYZxyz(9.2103, 7.6901, 32.4450)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254A9C #9C7725
analogous
#25859C #254A9C #3C259C
triadic
#254A9C #9C254A #4A9C25
tetradic
#254A9C #9C2585 #9C7725 #259C3C
square
#254A9C #9C2585 #9C7725 #259C3C
split-complementary
#254A9C #9C3C25 #859C25
monochromatic
#0E1B39 #19336B #254A9C #3161CD #6287DA

Accessibility & contrast

On white

8.27
#254A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#254A9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254A9C
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254A9C#FFFFFF#000000##FFFFFF
##254A9C1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14549F
Deuteranopia (green-blind)
#00499A
Tritanopia (blue-blind)
#005E6B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #254a9c;
/* rgb */ color: rgb(37, 74, 156);
/* oklch */ color: oklch(43.1% 0.141 263.4);
Tailwind
colors: {
  custom: {
    50: '#717bba',
    500: '#254a9c',
    950: '#000000',
  },
}
SCSS
$custom: #254a9c;
$custom-light: #717bba;
$custom-dark: #000000;
JSON
{
  "hex": "#254a9c",
  "rgb": {
    "r": 37,
    "g": 74,
    "b": 156
  },
  "hsl": {
    "h": 221.345,
    "s": 61.658,
    "l": 37.843
  },
  "oklch": {
    "l": 0.43118,
    "c": 0.1406,
    "h": 263.4
  },
  "luminance": 0.07691
}

Semantic roles & 50–950 ramp

primary
#254A9C
secondary
#BFA15E
accent
#B243E5
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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