#251792#251792

#251792 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.4% C 0.185 H 274.8°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#251792
RGBrgb(37, 23, 146)
HSLhsl(247, 73%, 33%)
HSVhsv(247, 84%, 57%)
CMYKcmyk(74.7%, 84.2%, 0%, 42.7%)
CIE-LABlab(20.36, 45.13, -63.65)
CIE-LCHlch(20.36, 78.03, 305.34°)
OKLaboklab(33.36% 0.0154 -0.184)
OKLCHoklch(33.36% 0.185 274.8)
XYZxyz(6.2559, 3.0808, 27.4535)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251792 #849217
analogous
#174792 #251792 #621792
triadic
#251792 #922517 #179225
tetradic
#251792 #921747 #849217 #179262
square
#251792 #921747 #849217 #179262
split-complementary
#251792 #926217 #479217
monochromatic
#0A0628 #180F5D #251792 #321FC7 #5442E1

Accessibility & contrast

On white

12.99
#251792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#251792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251792
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251792#FFFFFF#000000##FFFFFF
##2517921.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003695
Deuteranopia (green-blind)
#002B90
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #251792;
/* rgb */ color: rgb(37, 23, 146);
/* oklch */ color: oklch(33.4% 0.185 274.8);
Tailwind
colors: {
  custom: {
    50: '#7359b3',
    500: '#251792',
    950: '#000000',
  },
}
SCSS
$custom: #251792;
$custom-light: #7359b3;
$custom-dark: #000000;
JSON
{
  "hex": "#251792",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 146
  },
  "hsl": {
    "h": 246.829,
    "s": 72.781,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33364,
    "c": 0.18467,
    "h": 274.8
  },
  "luminance": 0.03081
}

Semantic roles & 50–950 ramp

primary
#251792
secondary
#B3C243
accent
#EF38DB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #251792

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

Preview Lab → · Contrast checker → · Palette generator →

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