#251FA9#251FA9

#251FA9 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.0% C 0.205 H 271.9°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#251FA9
RGBrgb(37, 31, 169)
HSLhsl(243, 69%, 39%)
HSVhsv(243, 82%, 66%)
CMYKcmyk(78.1%, 81.7%, 0%, 33.7%)
CIE-LABlab(24.44, 48.51, -70.97)
CIE-LCHlch(24.44, 85.96, 304.36°)
OKLaboklab(36.99% 0.0069 -0.2054)
OKLCHoklch(36.99% 0.206 271.9)
XYZxyz(8.4120, 4.2369, 37.9029)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251FA9 #A3A91F
analogous
#1F5EA9 #251FA9 #6A1FA9
triadic
#251FA9 #A9251F #1FA925
tetradic
#251FA9 #A91F5E #A3A91F #1FA96A
square
#251FA9 #A91F5E #A3A91F #1FA96A
split-complementary
#251FA9 #A96A1F #5EA91F
monochromatic
#0E0C42 #1A1675 #251FA9 #342DD8 #6660E2

Accessibility & contrast

On white

11.37
#251FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#251FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251FA9
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251FA9#FFFFFF#000000##FFFFFF
##251FA91.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AD
Deuteranopia (green-blind)
#0033A7
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #251fa9;
/* rgb */ color: rgb(37, 31, 169);
/* oklch */ color: oklch(37.0% 0.205 271.9);
Tailwind
colors: {
  custom: {
    50: '#785fc4',
    500: '#251fa9',
    950: '#000000',
  },
}
SCSS
$custom: #251fa9;
$custom-light: #785fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#251fa9",
  "rgb": {
    "r": 37,
    "g": 31,
    "b": 169
  },
  "hsl": {
    "h": 242.609,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.36988,
    "c": 0.2055,
    "h": 271.9
  },
  "luminance": 0.04238
}

Semantic roles & 50–950 ramp

primary
#251FA9
secondary
#C2C75D
accent
#EC3CE4
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #251FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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