#251981#251981

#251981 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.162 H 276.9°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#251981
RGBrgb(37, 25, 129)
HSLhsl(247, 68%, 30%)
HSVhsv(247, 81%, 51%)
CMYKcmyk(71.3%, 80.6%, 0%, 49.4%)
CIE-LABlab(18.68, 38.74, -55.78)
CIE-LCHlch(18.68, 67.91, 304.78°)
OKLaboklab(31.61% 0.0194 -0.1612)
OKLCHoklch(31.61% 0.162 276.9)
XYZxyz(5.0717, 2.6731, 21.0133)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251981 #758119
analogous
#194181 #251981 #591981
triadic
#251981 #812519 #198125
tetradic
#251981 #811941 #758119 #198159
square
#251981 #811941 #758119 #198159
split-complementary
#251981 #815919 #418119
monochromatic
#08051A #160F4E #251981 #3423B4 #4E3BD9

Accessibility & contrast

On white

13.68
#251981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #251981
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251981#FFFFFF#000000##FFFFFF
##2519811.0013.681.5313.68
#FFFFFF13.681.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#00297F
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #251981;
/* rgb */ color: rgb(37, 25, 129);
/* oklch */ color: oklch(31.6% 0.162 276.9);
Tailwind
colors: {
  custom: {
    50: '#6f59a7',
    500: '#251981',
    950: '#000000',
  },
}
SCSS
$custom: #251981;
$custom-light: #6f59a7;
$custom-dark: #000000;
JSON
{
  "hex": "#251981",
  "rgb": {
    "r": 37,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 246.923,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31608,
    "c": 0.16236,
    "h": 276.9
  },
  "luminance": 0.02674
}

Semantic roles & 50–950 ramp

primary
#251981
secondary
#A8B541
accent
#EA3DD6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #251981

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

Preview Lab → · Contrast checker → · Palette generator →

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