#251785#251785

#251785 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.169 H 276.5°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#251785
RGBrgb(37, 23, 133)
HSLhsl(248, 71%, 31%)
HSVhsv(248, 83%, 52%)
CMYKcmyk(72.2%, 82.7%, 0%, 47.8%)
CIE-LABlab(18.80, 41.06, -58.12)
CIE-LCHlch(18.80, 71.16, 305.24°)
OKLaboklab(31.82% 0.0192 -0.168)
OKLCHoklch(31.82% 0.169 276.5)
XYZxyz(5.3016, 2.6991, 22.4273)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251785 #778517
analogous
#174085 #251785 #5C1785
triadic
#251785 #852517 #178525
tetradic
#251785 #851740 #778517 #17855C
square
#251785 #851740 #778517 #17855C
split-complementary
#251785 #855C17 #408517
monochromatic
#08051D #160E51 #251785 #3420B9 #4E3ADD

Accessibility & contrast

On white

13.64
#251785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#251785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251785
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251785#FFFFFF#000000##FFFFFF
##2517851.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003288
Deuteranopia (green-blind)
#002983
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #251785;
/* rgb */ color: rgb(37, 23, 133);
/* oklch */ color: oklch(31.8% 0.169 276.5);
Tailwind
colors: {
  custom: {
    50: '#7058aa',
    500: '#251785',
    950: '#000000',
  },
}
SCSS
$custom: #251785;
$custom-light: #7058aa;
$custom-dark: #000000;
JSON
{
  "hex": "#251785",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 247.636,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31823,
    "c": 0.16908,
    "h": 276.5
  },
  "luminance": 0.027
}

Semantic roles & 50–950 ramp

primary
#251785
secondary
#A9B93F
accent
#ED3BD7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #251785

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

Preview Lab → · Contrast checker → · Palette generator →

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