#254BA2#254BA2

#254BA2 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.8% C 0.148 H 263.7°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#254BA2
RGBrgb(37, 75, 162)
HSLhsl(222, 63%, 39%)
HSVhsv(222, 77%, 64%)
CMYKcmyk(77.2%, 53.7%, 0%, 36.5%)
CIE-LABlab(34.05, 18.71, -50.98)
CIE-LCHlch(34.05, 54.30, 290.15°)
OKLaboklab(43.81% -0.0163 -0.1468)
OKLCHoklch(43.81% 0.148 263.7)
XYZxyz(9.7983, 8.0330, 35.2095)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254BA2 #A27C25
analogous
#258AA2 #254BA2 #3E25A2
triadic
#254BA2 #A2254B #4BA225
tetradic
#254BA2 #A2258A #A27C25 #25A23E
square
#254BA2 #A2258A #A27C25 #25A23E
split-complementary
#254BA2 #A23E25 #8AA225
monochromatic
#0E1D3E #1A3470 #254BA2 #3463D1 #6589DC

Accessibility & contrast

On white

8.06
#254BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#254BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254BA2
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254BA2#FFFFFF#000000##FFFFFF
##254BA21.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0956A5
Deuteranopia (green-blind)
#004BA0
Tritanopia (blue-blind)
#00606F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #254ba2;
/* rgb */ color: rgb(37, 75, 162);
/* oklch */ color: oklch(43.8% 0.148 263.7);
Tailwind
colors: {
  custom: {
    50: '#737cbe',
    500: '#254ba2',
    950: '#000000',
  },
}
SCSS
$custom: #254ba2;
$custom-light: #737cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#254ba2",
  "rgb": {
    "r": 37,
    "g": 75,
    "b": 162
  },
  "hsl": {
    "h": 221.76,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.43806,
    "c": 0.14776,
    "h": 263.7
  },
  "luminance": 0.08034
}

Semantic roles & 50–950 ramp

primary
#254BA2
secondary
#C2A461
accent
#B442E6
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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