#251FAB#251FAB

#251FAB is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.2% C 0.208 H 271.8°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#251FAB
RGBrgb(37, 31, 171)
HSLhsl(243, 69%, 40%)
HSVhsv(243, 82%, 67%)
CMYKcmyk(78.4%, 81.9%, 0%, 32.9%)
CIE-LABlab(24.68, 49.14, -71.78)
CIE-LCHlch(24.68, 86.99, 304.40°)
OKLaboklab(37.22% 0.0065 -0.2077)
OKLCHoklch(37.22% 0.208 271.8)
XYZxyz(8.6011, 4.3126, 38.8993)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251FAB #A5AB1F
analogous
#1F5FAB #251FAB #6B1FAB
triadic
#251FAB #AB251F #1FAB25
tetradic
#251FAB #AB1F5F #A5AB1F #1FAB6B
square
#251FAB #AB1F5F #A5AB1F #1FAB6B
split-complementary
#251FAB #AB6B1F #5FAB1F
monochromatic
#0F0C43 #1A1677 #251FAB #352ED9 #6762E3

Accessibility & contrast

On white

11.27
#251FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#251FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251FAB
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251FAB#FFFFFF#000000##FFFFFF
##251FAB1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AF
Deuteranopia (green-blind)
#0033A9
Tritanopia (blue-blind)
#004C66
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #251fab;
/* rgb */ color: rgb(37, 31, 171);
/* oklch */ color: oklch(37.2% 0.208 271.8);
Tailwind
colors: {
  custom: {
    50: '#795fc5',
    500: '#251fab',
    950: '#000000',
  },
}
SCSS
$custom: #251fab;
$custom-light: #795fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#251fab",
  "rgb": {
    "r": 37,
    "g": 31,
    "b": 171
  },
  "hsl": {
    "h": 242.571,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37223,
    "c": 0.20782,
    "h": 271.8
  },
  "luminance": 0.04314
}

Semantic roles & 50–950 ramp

primary
#251FAB
secondary
#C3C75E
accent
#EC3CE5
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #251FAB

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

Preview Lab → · Contrast checker → · Palette generator →

#251FAB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva