#254AA2#254AA2

#254AA2 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.6% C 0.149 H 264.0°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#254AA2
RGBrgb(37, 74, 162)
HSLhsl(222, 63%, 39%)
HSVhsv(222, 77%, 64%)
CMYKcmyk(77.2%, 54.3%, 0%, 36.5%)
CIE-LABlab(33.77, 19.38, -51.44)
CIE-LCHlch(33.77, 54.97, 290.64°)
OKLaboklab(43.59% -0.0156 -0.1482)
OKLCHoklch(43.59% 0.149 264)
XYZxyz(9.7310, 7.8984, 35.1871)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254AA2 #A27D25
analogous
#2589A2 #254AA2 #3F25A2
triadic
#254AA2 #A2254A #4AA225
tetradic
#254AA2 #A22589 #A27D25 #25A23F
square
#254AA2 #A22589 #A27D25 #25A23F
split-complementary
#254AA2 #A23F25 #89A225
monochromatic
#0E1C3E #1A3370 #254AA2 #3462D1 #6589DC

Accessibility & contrast

On white

8.14
#254AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#254AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254AA2
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254AA2#FFFFFF#000000##FFFFFF
##254AA21.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0355A5
Deuteranopia (green-blind)
#004AA0
Tritanopia (blue-blind)
#005F6E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #254aa2;
/* rgb */ color: rgb(37, 74, 162);
/* oklch */ color: oklch(43.6% 0.149 264.0);
Tailwind
colors: {
  custom: {
    50: '#737cbe',
    500: '#254aa2',
    950: '#000000',
  },
}
SCSS
$custom: #254aa2;
$custom-light: #737cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#254aa2",
  "rgb": {
    "r": 37,
    "g": 74,
    "b": 162
  },
  "hsl": {
    "h": 222.24,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.43593,
    "c": 0.14902,
    "h": 264
  },
  "luminance": 0.079
}

Semantic roles & 50–950 ramp

primary
#254AA2
secondary
#C2A561
accent
#B542E6
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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