#251FBD#251FBD

#251FBD is a dark, highly saturated blue. Relative luminance 0.050; OKLCH L 39.4% C 0.228 H 270.6°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#251FBD
RGBrgb(37, 31, 189)
HSLhsl(242, 72%, 43%)
HSVhsv(242, 84%, 74%)
CMYKcmyk(80.4%, 83.6%, 0%, 25.9%)
CIE-LABlab(26.87, 54.65, -78.90)
CIE-LCHlch(26.87, 95.98, 304.71°)
OKLaboklab(39.36% 0.0023 -0.2283)
OKLCHoklch(39.36% 0.228 270.6)
XYZxyz(10.4351, 5.0462, 48.5583)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251FBD #B7BD1F
analogous
#1F68BD #251FBD #741FBD
triadic
#251FBD #BD251F #1FBD25
tetradic
#251FBD #BD1F68 #B7BD1F #1FBD74
square
#251FBD #BD1F68 #B7BD1F #1FBD74
split-complementary
#251FBD #BD741F #68BD1F
monochromatic
#100E54 #1B1688 #251FBD #413ADF #746FE7

Accessibility & contrast

On white

10.45
#251FBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#251FBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251FBD
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251FBD#FFFFFF#000000##FFFFFF
##251FBD1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047C1
Deuteranopia (green-blind)
#0037BA
Tritanopia (blue-blind)
#005371
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #251fbd;
/* rgb */ color: rgb(37, 31, 189);
/* oklch */ color: oklch(39.4% 0.228 270.6);
Tailwind
colors: {
  custom: {
    50: '#7d60d2',
    500: '#251fbd',
    950: '#000000',
  },
}
SCSS
$custom: #251fbd;
$custom-light: #7d60d2;
$custom-dark: #000000;
JSON
{
  "hex": "#251fbd",
  "rgb": {
    "r": 37,
    "g": 31,
    "b": 189
  },
  "hsl": {
    "h": 242.278,
    "s": 71.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.39363,
    "c": 0.22833,
    "h": 270.6
  },
  "luminance": 0.05047
}

Semantic roles & 50–950 ramp

primary
#251FBD
secondary
#CACE6A
accent
#EF39E8
background
#F8F5FD
surface
#F0EAFA
border
#CBC6D3
text
#0C0514
muted
#7D7983

Preview Lab

Preview with #251FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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