#251FA0#251FA0

#251FA0 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.195 H 272.7°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#251FA0
RGBrgb(37, 31, 160)
HSLhsl(243, 68%, 37%)
HSVhsv(243, 81%, 63%)
CMYKcmyk(76.9%, 80.6%, 0%, 37.3%)
CIE-LABlab(23.37, 45.66, -67.27)
CIE-LCHlch(23.37, 81.30, 304.16°)
OKLaboklab(35.94% 0.0091 -0.1947)
OKLCHoklch(35.94% 0.195 272.7)
XYZxyz(7.5960, 3.9105, 33.6054)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251FA0 #9AA01F
analogous
#1F59A0 #251FA0 #661FA0
triadic
#251FA0 #A0251F #1FA025
tetradic
#251FA0 #A01F59 #9AA01F #1FA066
square
#251FA0 #A01F59 #9AA01F #1FA066
split-complementary
#251FA0 #A0661F #59A01F
monochromatic
#0D0B39 #19156D #251FA0 #3129D3 #605ADF

Accessibility & contrast

On white

11.78
#251FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#251FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251FA0
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251FA0#FFFFFF#000000##FFFFFF
##251FA01.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA4
Deuteranopia (green-blind)
#00319E
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #251fa0;
/* rgb */ color: rgb(37, 31, 160);
/* oklch */ color: oklch(35.9% 0.195 272.7);
Tailwind
colors: {
  custom: {
    50: '#765ebd',
    500: '#251fa0',
    950: '#000000',
  },
}
SCSS
$custom: #251fa0;
$custom-light: #765ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#251fa0",
  "rgb": {
    "r": 37,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 242.791,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.35937,
    "c": 0.19488,
    "h": 272.7
  },
  "luminance": 0.03911
}

Semantic roles & 50–950 ramp

primary
#251FA0
secondary
#BEC358
accent
#EA3DE2
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #251FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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