#254BA1#254BA1

#254BA1 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.7% C 0.146 H 263.6°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#254BA1
RGBrgb(37, 75, 161)
HSLhsl(222, 63%, 39%)
HSVhsv(222, 77%, 63%)
CMYKcmyk(77%, 53.4%, 0%, 36.9%)
CIE-LABlab(33.98, 18.32, -50.50)
CIE-LCHlch(33.98, 53.72, 289.93°)
OKLaboklab(43.73% -0.0164 -0.1454)
OKLCHoklch(43.73% 0.146 263.6)
XYZxyz(9.7098, 7.9976, 34.7433)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254BA1 #A17B25
analogous
#2589A1 #254BA1 #3D25A1
triadic
#254BA1 #A1254B #4BA125
tetradic
#254BA1 #A12589 #A17B25 #25A13D
square
#254BA1 #A12589 #A17B25 #25A13D
split-complementary
#254BA1 #A13D25 #89A125
monochromatic
#0E1D3D #1A346F #254BA1 #3363D0 #6589DC

Accessibility & contrast

On white

8.08
#254BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#254BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254BA1
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254BA1#FFFFFF#000000##FFFFFF
##254BA11.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D56A4
Deuteranopia (green-blind)
#004A9F
Tritanopia (blue-blind)
#00606E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #254ba1;
/* rgb */ color: rgb(37, 75, 161);
/* oklch */ color: oklch(43.7% 0.146 263.6);
Tailwind
colors: {
  custom: {
    50: '#727cbd',
    500: '#254ba1',
    950: '#000000',
  },
}
SCSS
$custom: #254ba1;
$custom-light: #727cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#254ba1",
  "rgb": {
    "r": 37,
    "g": 75,
    "b": 161
  },
  "hsl": {
    "h": 221.613,
    "s": 62.626,
    "l": 38.824
  },
  "oklch": {
    "l": 0.43727,
    "c": 0.14636,
    "h": 263.6
  },
  "luminance": 0.07999
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #254BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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