#251880#251880

#251880 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.162 H 277.2°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#251880
RGBrgb(37, 24, 128)
HSLhsl(248, 68%, 30%)
HSVhsv(248, 81%, 50%)
CMYKcmyk(71.1%, 81.3%, 0%, 49.8%)
CIE-LABlab(18.39, 38.94, -55.64)
CIE-LCHlch(18.39, 67.91, 304.99°)
OKLaboklab(31.37% 0.0202 -0.1608)
OKLCHoklch(31.37% 0.162 277.2)
XYZxyz(4.9846, 2.6046, 20.6580)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251880 #738018
analogous
#183F80 #251880 #591880
triadic
#251880 #802518 #188025
tetradic
#251880 #80183F #738018 #188059
square
#251880 #80183F #738018 #188059
split-complementary
#251880 #805918 #3F8018
monochromatic
#07051A #160E4C #251880 #3422B4 #4D39DA

Accessibility & contrast

On white

13.81
#251880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#251880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251880
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251880#FFFFFF#000000##FFFFFF
##2518801.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #251880;
/* rgb */ color: rgb(37, 24, 128);
/* oklch */ color: oklch(31.4% 0.162 277.2);
Tailwind
colors: {
  custom: {
    50: '#6f58a6',
    500: '#251880',
    950: '#000000',
  },
}
SCSS
$custom: #251880;
$custom-light: #6f58a6;
$custom-dark: #000000;
JSON
{
  "hex": "#251880",
  "rgb": {
    "r": 37,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 247.5,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31365,
    "c": 0.16204,
    "h": 277.2
  },
  "luminance": 0.02605
}

Semantic roles & 50–950 ramp

primary
#251880
secondary
#A6B440
accent
#EB3DD5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #251880

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

Preview Lab → · Contrast checker → · Palette generator →

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