#251678#251678

#251678 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.154 H 278.8°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#251678
RGBrgb(37, 22, 120)
HSLhsl(249, 69%, 28%)
HSVhsv(249, 82%, 47%)
CMYKcmyk(69.2%, 81.7%, 0%, 52.9%)
CIE-LABlab(17.10, 37.40, -52.66)
CIE-LCHlch(17.10, 64.59, 305.38°)
OKLaboklab(30.2% 0.0236 -0.1521)
OKLCHoklch(30.2% 0.154 278.8)
XYZxyz(4.4389, 2.3228, 17.9801)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251678 #697816
analogous
#163878 #251678 #561678
triadic
#251678 #782516 #167825
tetradic
#251678 #781638 #697816 #167856
square
#251678 #781638 #697816 #167856
split-complementary
#251678 #785616 #387816
monochromatic
#08051A #150D44 #251678 #351FAC #492FD9

Accessibility & contrast

On white

14.34
#251678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #251678
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251678#FFFFFF#000000##FFFFFF
##2516781.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002676
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #251678;
/* rgb */ color: rgb(37, 22, 120);
/* oklch */ color: oklch(30.2% 0.154 278.8);
Tailwind
colors: {
  custom: {
    50: '#6d56a0',
    500: '#251678',
    950: '#000000',
  },
}
SCSS
$custom: #251678;
$custom-light: #6d56a0;
$custom-dark: #000000;
JSON
{
  "hex": "#251678",
  "rgb": {
    "r": 37,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 249.184,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30195,
    "c": 0.1539,
    "h": 278.8
  },
  "luminance": 0.02323
}

Semantic roles & 50–950 ramp

primary
#251678
secondary
#9CAD3C
accent
#EC3CD1
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #251678

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

Preview Lab → · Contrast checker → · Palette generator →

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