#251971#251971

#251971 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.8% C 0.142 H 279.6°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#251971
RGBrgb(37, 25, 113)
HSLhsl(248, 64%, 27%)
HSVhsv(248, 78%, 44%)
CMYKcmyk(67.3%, 77.9%, 0%, 55.7%)
CIE-LABlab(16.90, 33.43, -48.48)
CIE-LCHlch(16.90, 58.89, 304.59°)
OKLaboklab(29.82% 0.0236 -0.1399)
OKLCHoklch(29.82% 0.142 279.6)
XYZxyz(4.0903, 2.2805, 15.8442)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251971 #657119
analogous
#193971 #251971 #511971
triadic
#251971 #712519 #197125
tetradic
#251971 #711939 #657119 #197151
square
#251971 #711939 #657119 #197151
split-complementary
#251971 #715119 #397119
monochromatic
#080619 #150E3F #251971 #3524A3 #4833D2

Accessibility & contrast

On white

14.42
#251971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#251971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251971
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251971#FFFFFF#000000##FFFFFF
##2519711.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#00266F
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #251971;
/* rgb */ color: rgb(37, 25, 113);
/* oklch */ color: oklch(29.8% 0.142 279.6);
Tailwind
colors: {
  custom: {
    50: '#6b589b',
    500: '#251971',
    950: '#000000',
  },
}
SCSS
$custom: #251971;
$custom-light: #6b589b;
$custom-dark: #000000;
JSON
{
  "hex": "#251971",
  "rgb": {
    "r": 37,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 248.182,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.2982,
    "c": 0.14192,
    "h": 279.6
  },
  "luminance": 0.02281
}

Semantic roles & 50–950 ramp

primary
#251971
secondary
#98A640
accent
#E741D0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #251971

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

Preview Lab → · Contrast checker → · Palette generator →

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