#254EB3#254EB3

#254EB3 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.8% C 0.167 H 264.1°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#254EB3
RGBrgb(37, 78, 179)
HSLhsl(223, 66%, 42%)
HSVhsv(223, 79%, 70%)
CMYKcmyk(79.3%, 56.4%, 0%, 29.8%)
CIE-LABlab(36.17, 23.31, -57.68)
CIE-LCHlch(36.17, 62.21, 292.00°)
OKLaboklab(45.81% -0.0171 -0.1665)
OKLCHoklch(45.81% 0.167 264.1)
XYZxyz(11.6211, 9.0954, 43.7822)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254EB3 #B38A25
analogous
#2595B3 #254EB3 #4325B3
triadic
#254EB3 #B3254E #4EB325
tetradic
#254EB3 #B32595 #B38A25 #25B343
square
#254EB3 #B32595 #B38A25 #25B343
split-complementary
#254EB3 #B34325 #95B325
monochromatic
#10224E #1B3880 #254EB3 #3E6AD7 #7191E2

Accessibility & contrast

On white

7.45
#254EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#254EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254EB3
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254EB3#FFFFFF#000000##FFFFFF
##254EB31.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#004FB1
Tritanopia (blue-blind)
#006779
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #254eb3;
/* rgb */ color: rgb(37, 78, 179);
/* oklch */ color: oklch(45.8% 0.167 264.1);
Tailwind
colors: {
  custom: {
    50: '#777fcb',
    500: '#254eb3',
    950: '#000000',
  },
}
SCSS
$custom: #254eb3;
$custom-light: #777fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#254eb3",
  "rgb": {
    "r": 37,
    "g": 78,
    "b": 179
  },
  "hsl": {
    "h": 222.676,
    "s": 65.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45812,
    "c": 0.16736,
    "h": 264.1
  },
  "luminance": 0.09097
}

Semantic roles & 50–950 ramp

primary
#254EB3
secondary
#C8AE6B
accent
#B83FE9
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #254EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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