#251972#251972

#251972 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.9% C 0.143 H 279.4°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#251972
RGBrgb(37, 25, 114)
HSLhsl(248, 64%, 27%)
HSVhsv(248, 78%, 45%)
CMYKcmyk(67.5%, 78.1%, 0%, 55.3%)
CIE-LABlab(17.00, 33.76, -48.95)
CIE-LCHlch(17.00, 59.46, 304.60°)
OKLaboklab(29.93% 0.0234 -0.1413)
OKLCHoklch(29.93% 0.143 279.4)
XYZxyz(4.1469, 2.3031, 16.1423)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251972 #667219
analogous
#193972 #251972 #521972
triadic
#251972 #722519 #197225
tetradic
#251972 #721939 #667219 #197252
square
#251972 #721939 #667219 #197252
split-complementary
#251972 #725219 #397219
monochromatic
#080619 #150E40 #251972 #3524A4 #4933D2

Accessibility & contrast

On white

14.38
#251972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #251972
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251972#FFFFFF#000000##FFFFFF
##2519721.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002670
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #251972;
/* rgb */ color: rgb(37, 25, 114);
/* oklch */ color: oklch(29.9% 0.143 279.4);
Tailwind
colors: {
  custom: {
    50: '#6b589c',
    500: '#251972',
    950: '#000000',
  },
}
SCSS
$custom: #251972;
$custom-light: #6b589c;
$custom-dark: #000000;
JSON
{
  "hex": "#251972",
  "rgb": {
    "r": 37,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 248.09,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.29929,
    "c": 0.14322,
    "h": 279.4
  },
  "luminance": 0.02303
}

Semantic roles & 50–950 ramp

primary
#251972
secondary
#99A740
accent
#E741D1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #251972

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

Preview Lab → · Contrast checker → · Palette generator →

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