#251782#251782

#251782 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.5% C 0.165 H 277.0°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#251782
RGBrgb(37, 23, 130)
HSLhsl(248, 70%, 30%)
HSVhsv(248, 82%, 51%)
CMYKcmyk(71.5%, 82.3%, 0%, 49%)
CIE-LABlab(18.44, 40.10, -56.81)
CIE-LCHlch(18.44, 69.54, 305.22°)
OKLaboklab(31.47% 0.0201 -0.1642)
OKLCHoklch(31.47% 0.165 277)
XYZxyz(5.0973, 2.6173, 21.3513)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251782 #748217
analogous
#173F82 #251782 #5A1782
triadic
#251782 #822517 #178225
tetradic
#251782 #82173F #748217 #17825A
square
#251782 #82173F #748217 #17825A
split-complementary
#251782 #825A17 #3F8217
monochromatic
#07051A #160E4E #251782 #3420B6 #4D38DC

Accessibility & contrast

On white

13.78
#251782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #251782
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251782#FFFFFF#000000##FFFFFF
##2517821.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003185
Deuteranopia (green-blind)
#002880
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #251782;
/* rgb */ color: rgb(37, 23, 130);
/* oklch */ color: oklch(31.5% 0.165 277.0);
Tailwind
colors: {
  custom: {
    50: '#6f57a8',
    500: '#251782',
    950: '#000000',
  },
}
SCSS
$custom: #251782;
$custom-light: #6f57a8;
$custom-dark: #000000;
JSON
{
  "hex": "#251782",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 130
  },
  "hsl": {
    "h": 247.85,
    "s": 69.935,
    "l": 30
  },
  "oklch": {
    "l": 0.31473,
    "c": 0.16541,
    "h": 277
  },
  "luminance": 0.02618
}

Semantic roles & 50–950 ramp

primary
#251782
secondary
#A7B63E
accent
#ED3BD5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #251782

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

Preview Lab → · Contrast checker → · Palette generator →

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