#254FBA#254FBA

#254FBA is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.6% C 0.176 H 264.3°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#254FBA
RGBrgb(37, 79, 186)
HSLhsl(223, 67%, 44%)
HSVhsv(223, 80%, 73%)
CMYKcmyk(80.1%, 57.5%, 0%, 27.1%)
CIE-LABlab(36.98, 25.34, -60.47)
CIE-LCHlch(36.98, 65.57, 292.74°)
OKLaboklab(46.6% -0.0174 -0.1747)
OKLCHoklch(46.6% 0.176 264.3)
XYZxyz(12.4187, 9.5290, 47.6296)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254FBA #BA9025
analogous
#2599BA #254FBA #4525BA
triadic
#254FBA #BA254F #4FBA25
tetradic
#254FBA #BA2599 #BA9025 #25BA45
square
#254FBA #BA2599 #BA9025 #25BA45
split-complementary
#254FBA #BA4525 #99BA25
monochromatic
#112454 #1B3987 #254FBA #436DDA #7695E4

Accessibility & contrast

On white

7.23
#254FBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#254FBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254FBA
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254FBA#FFFFFF#000000##FFFFFF
##254FBA1.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBE
Deuteranopia (green-blind)
#0050B8
Tritanopia (blue-blind)
#006A7D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #254fba;
/* rgb */ color: rgb(37, 79, 186);
/* oklch */ color: oklch(46.6% 0.176 264.3);
Tailwind
colors: {
  custom: {
    50: '#787fd0',
    500: '#254fba',
    950: '#000000',
  },
}
SCSS
$custom: #254fba;
$custom-light: #787fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#254fba",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 186
  },
  "hsl": {
    "h": 223.087,
    "s": 66.816,
    "l": 43.725
  },
  "oklch": {
    "l": 0.46597,
    "c": 0.17554,
    "h": 264.3
  },
  "luminance": 0.0953
}

Semantic roles & 50–950 ramp

primary
#254FBA
secondary
#CBB170
accent
#B93EEA
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #254FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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