#251FA6#251FA6

#251FA6 is a dark, highly saturated blue. Relative luminance 0.041; OKLCH L 36.6% C 0.202 H 272.2°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#251FA6
RGBrgb(37, 31, 166)
HSLhsl(243, 69%, 39%)
HSVhsv(243, 81%, 65%)
CMYKcmyk(77.7%, 81.3%, 0%, 34.9%)
CIE-LABlab(24.08, 47.57, -69.75)
CIE-LCHlch(24.08, 84.42, 304.29°)
OKLaboklab(36.64% 0.0076 -0.2018)
OKLCHoklch(36.64% 0.202 272.2)
XYZxyz(8.1336, 4.1256, 36.4367)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251FA6 #A0A61F
analogous
#1F5CA6 #251FA6 #681FA6
triadic
#251FA6 #A6251F #1FA625
tetradic
#251FA6 #A61F5C #A0A61F #1FA668
square
#251FA6 #A61F5C #A0A61F #1FA668
split-complementary
#251FA6 #A6681F #5CA61F
monochromatic
#0E0C3F #1A1572 #251FA6 #322BD7 #645EE1

Accessibility & contrast

On white

11.51
#251FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#251FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251FA6
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251FA6#FFFFFF#000000##FFFFFF
##251FA61.0011.511.8311.51
#FFFFFF11.511.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AA
Deuteranopia (green-blind)
#0032A4
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #251fa6;
/* rgb */ color: rgb(37, 31, 166);
/* oklch */ color: oklch(36.6% 0.202 272.2);
Tailwind
colors: {
  custom: {
    50: '#775ec2',
    500: '#251fa6',
    950: '#000000',
  },
}
SCSS
$custom: #251fa6;
$custom-light: #775ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#251fa6",
  "rgb": {
    "r": 37,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 242.667,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.36636,
    "c": 0.20198,
    "h": 272.2
  },
  "luminance": 0.04126
}

Semantic roles & 50–950 ramp

primary
#251FA6
secondary
#C1C55B
accent
#EB3CE4
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #251FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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