#251780#251780

#251780 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.163 H 277.3°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#251780
RGBrgb(37, 23, 128)
HSLhsl(248, 70%, 30%)
HSVhsv(248, 82%, 50%)
CMYKcmyk(71.1%, 82%, 0%, 49.8%)
CIE-LABlab(18.21, 39.46, -55.93)
CIE-LCHlch(18.21, 68.45, 305.20°)
OKLaboklab(31.24% 0.0207 -0.1616)
OKLCHoklch(31.24% 0.163 277.3)
XYZxyz(4.9644, 2.5642, 20.6512)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251780 #728017
analogous
#173E80 #251780 #5A1780
triadic
#251780 #802517 #178025
tetradic
#251780 #80173E #728017 #17805A
square
#251780 #80173E #728017 #17805A
split-complementary
#251780 #805A17 #3E8017
monochromatic
#07051A #160E4C #251780 #3420B4 #4C36DB

Accessibility & contrast

On white

13.88
#251780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#251780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251780
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251780#FFFFFF#000000##FFFFFF
##2517801.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#00287E
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #251780;
/* rgb */ color: rgb(37, 23, 128);
/* oklch */ color: oklch(31.2% 0.163 277.3);
Tailwind
colors: {
  custom: {
    50: '#6f57a6',
    500: '#251780',
    950: '#000000',
  },
}
SCSS
$custom: #251780;
$custom-light: #6f57a6;
$custom-dark: #000000;
JSON
{
  "hex": "#251780",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 248,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31241,
    "c": 0.16295,
    "h": 277.3
  },
  "luminance": 0.02565
}

Semantic roles & 50–950 ramp

primary
#251780
secondary
#A5B43E
accent
#EC3BD5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #251780

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

Preview Lab → · Contrast checker → · Palette generator →

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