#251783#251783

#251783 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.167 H 276.8°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#251783
RGBrgb(37, 23, 131)
HSLhsl(248, 70%, 30%)
HSVhsv(248, 82%, 51%)
CMYKcmyk(71.8%, 82.4%, 0%, 48.6%)
CIE-LABlab(18.56, 40.42, -57.25)
CIE-LCHlch(18.56, 70.08, 305.22°)
OKLaboklab(31.59% 0.0198 -0.1655)
OKLCHoklch(31.59% 0.167 276.8)
XYZxyz(5.1647, 2.6443, 21.7066)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251783 #758317
analogous
#173F83 #251783 #5B1783
triadic
#251783 #832517 #178325
tetradic
#251783 #83173F #758317 #17835B
square
#251783 #83173F #758317 #17835B
split-complementary
#251783 #835B17 #3F8317
monochromatic
#08051B #160E4F #251783 #3420B7 #4E38DC

Accessibility & contrast

On white

13.73
#251783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#251783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251783
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251783#FFFFFF#000000##FFFFFF
##2517831.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #251783;
/* rgb */ color: rgb(37, 23, 131);
/* oklch */ color: oklch(31.6% 0.167 276.8);
Tailwind
colors: {
  custom: {
    50: '#6f58a8',
    500: '#251783',
    950: '#000000',
  },
}
SCSS
$custom: #251783;
$custom-light: #6f58a8;
$custom-dark: #000000;
JSON
{
  "hex": "#251783",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 247.778,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31589,
    "c": 0.16663,
    "h": 276.8
  },
  "luminance": 0.02645
}

Semantic roles & 50–950 ramp

primary
#251783
secondary
#A8B73F
accent
#ED3BD6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #251783

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

Preview Lab → · Contrast checker → · Palette generator →

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