#251793#251793

#251793 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.5% C 0.186 H 274.7°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#251793
RGBrgb(37, 23, 147)
HSLhsl(247, 73%, 33%)
HSVhsv(247, 84%, 58%)
CMYKcmyk(74.8%, 84.4%, 0%, 42.4%)
CIE-LABlab(20.49, 45.44, -64.07)
CIE-LCHlch(20.49, 78.55, 305.35°)
OKLaboklab(33.48% 0.0151 -0.1852)
OKLCHoklch(33.48% 0.186 274.7)
XYZxyz(6.3341, 3.1121, 27.8650)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251793 #859317
analogous
#174793 #251793 #631793
triadic
#251793 #932517 #179325
tetradic
#251793 #931747 #859317 #179363
square
#251793 #931747 #859317 #179363
split-complementary
#251793 #936317 #479317
monochromatic
#0A0629 #180F5E #251793 #321FC8 #5543E2

Accessibility & contrast

On white

12.94
#251793 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #251793
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251793#FFFFFF#000000##FFFFFF
##2517931.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003796
Deuteranopia (green-blind)
#002C91
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #251793;
/* rgb */ color: rgb(37, 23, 147);
/* oklch */ color: oklch(33.5% 0.186 274.7);
Tailwind
colors: {
  custom: {
    50: '#7359b4',
    500: '#251793',
    950: '#000000',
  },
}
SCSS
$custom: #251793;
$custom-light: #7359b4;
$custom-dark: #000000;
JSON
{
  "hex": "#251793",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 147
  },
  "hsl": {
    "h": 246.774,
    "s": 72.941,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33484,
    "c": 0.18586,
    "h": 274.7
  },
  "luminance": 0.03113
}

Semantic roles & 50–950 ramp

primary
#251793
secondary
#B4C244
accent
#F038DB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #251793

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

Preview Lab → · Contrast checker → · Palette generator →

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