#254ECA#254ECA

#254ECA is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.8% C 0.198 H 265.3°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#254ECA
RGBrgb(37, 78, 202)
HSLhsl(225, 69%, 47%)
HSVhsv(225, 82%, 79%)
CMYKcmyk(81.7%, 61.4%, 0%, 20.8%)
CIE-LABlab(38.03, 32.08, -68.10)
CIE-LCHlch(38.03, 75.28, 295.22°)
OKLaboklab(47.79% -0.0163 -0.1971)
OKLCHoklch(47.79% 0.198 265.3)
XYZxyz(14.1442, 10.1047, 57.0706)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254ECA #CAA125
analogous
#25A1CA #254ECA #4F25CA
triadic
#254ECA #CA254E #4ECA25
tetradic
#254ECA #CA25A1 #CAA125 #25CA4F
square
#254ECA #CA25A1 #CAA125 #25CA4F
split-complementary
#254ECA #CA4F25 #A1CA25
monochromatic
#122663 #1C3A96 #254ECA #4E72DF #819BE8

Accessibility & contrast

On white

6.95
#254ECA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#254ECA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #254ECA
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254ECA#FFFFFF#000000##FFFFFF
##254ECA1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CE
Deuteranopia (green-blind)
#0052C8
Tritanopia (blue-blind)
#006E84
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #254eca;
/* rgb */ color: rgb(37, 78, 202);
/* oklch */ color: oklch(47.8% 0.198 265.3);
Tailwind
colors: {
  custom: {
    50: '#7c7fdb',
    500: '#254eca',
    950: '#000000',
  },
}
SCSS
$custom: #254eca;
$custom-light: #7c7fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#254eca",
  "rgb": {
    "r": 37,
    "g": 78,
    "b": 202
  },
  "hsl": {
    "h": 225.091,
    "s": 69.038,
    "l": 46.863
  },
  "oklch": {
    "l": 0.47785,
    "c": 0.19774,
    "h": 265.3
  },
  "luminance": 0.10106
}

Semantic roles & 50–950 ramp

primary
#254ECA
secondary
#D1BB7A
accent
#C03CEC
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0B0A15
muted
#7C7C83

Preview Lab

Preview with #254ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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