#251FB3#251FB3

#251FB3 is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.2% C 0.217 H 271.2°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#251FB3
RGBrgb(37, 31, 179)
HSLhsl(242, 70%, 41%)
HSVhsv(242, 83%, 70%)
CMYKcmyk(79.3%, 82.7%, 0%, 29.8%)
CIE-LABlab(25.64, 51.62, -74.98)
CIE-LCHlch(25.64, 91.03, 304.54°)
OKLaboklab(38.17% 0.0046 -0.217)
OKLCHoklch(38.17% 0.217 271.2)
XYZxyz(9.3869, 4.6269, 43.0374)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251FB3 #ADB31F
analogous
#1F63B3 #251FB3 #6F1FB3
triadic
#251FB3 #B3251F #1FB325
tetradic
#251FB3 #B31F63 #ADB31F #1FB36F
square
#251FB3 #B31F63 #ADB31F #1FB36F
split-complementary
#251FB3 #B36F1F #63B31F
monochromatic
#0F0D4B #1A167F #251FB3 #3A33DC #6D68E5

Accessibility & contrast

On white

10.91
#251FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#251FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251FB3
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251FB3#FFFFFF#000000##FFFFFF
##251FB31.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B7
Deuteranopia (green-blind)
#0035B1
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #251fb3;
/* rgb */ color: rgb(37, 31, 179);
/* oklch */ color: oklch(38.2% 0.217 271.2);
Tailwind
colors: {
  custom: {
    50: '#7b5fcb',
    500: '#251fb3',
    950: '#000000',
  },
}
SCSS
$custom: #251fb3;
$custom-light: #7b5fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#251fb3",
  "rgb": {
    "r": 37,
    "g": 31,
    "b": 179
  },
  "hsl": {
    "h": 242.432,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38169,
    "c": 0.21703,
    "h": 271.2
  },
  "luminance": 0.04628
}

Semantic roles & 50–950 ramp

primary
#251FB3
secondary
#C6CA64
accent
#ED3BE6
background
#F8F5FC
surface
#EFEAF9
border
#CAC6D2
text
#0B0514
muted
#7C7982

Preview Lab

Preview with #251FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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