#251874#251874

#251874 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.147 H 279.2°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#251874
RGBrgb(37, 24, 116)
HSLhsl(248, 66%, 27%)
HSVhsv(248, 79%, 45%)
CMYKcmyk(68.1%, 79.3%, 0%, 54.5%)
CIE-LABlab(17.02, 35.00, -50.21)
CIE-LCHlch(17.02, 61.20, 304.88°)
OKLaboklab(30.01% 0.0235 -0.145)
OKLCHoklch(30.01% 0.147 279.2)
XYZxyz(4.2410, 2.3072, 16.7415)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251874 #677418
analogous
#183974 #251874 #531874
triadic
#251874 #742518 #187425
tetradic
#251874 #741839 #677418 #187453
square
#251874 #741839 #677418 #187453
split-complementary
#251874 #745318 #397418
monochromatic
#080519 #150E41 #251874 #3522A7 #4932D5

Accessibility & contrast

On white

14.37
#251874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#251874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251874
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251874#FFFFFF#000000##FFFFFF
##2518741.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002672
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #251874;
/* rgb */ color: rgb(37, 24, 116);
/* oklch */ color: oklch(30.0% 0.147 279.2);
Tailwind
colors: {
  custom: {
    50: '#6c579d',
    500: '#251874',
    950: '#000000',
  },
}
SCSS
$custom: #251874;
$custom-light: #6c579d;
$custom-dark: #000000;
JSON
{
  "hex": "#251874",
  "rgb": {
    "r": 37,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 248.478,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30008,
    "c": 0.14686,
    "h": 279.2
  },
  "luminance": 0.02308
}

Semantic roles & 50–950 ramp

primary
#251874
secondary
#9AA93F
accent
#E93FD1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #251874

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

Preview Lab → · Contrast checker → · Palette generator →

#251874 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva