#251795#251795

#251795 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.7% C 0.188 H 274.4°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#251795
RGBrgb(37, 23, 149)
HSLhsl(247, 73%, 34%)
HSVhsv(247, 85%, 58%)
CMYKcmyk(75.2%, 84.6%, 0%, 41.6%)
CIE-LABlab(20.73, 46.06, -64.90)
CIE-LCHlch(20.73, 79.58, 305.36°)
OKLaboklab(33.72% 0.0146 -0.1876)
OKLCHoklch(33.72% 0.188 274.4)
XYZxyz(6.4924, 3.1754, 28.6987)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251795 #879517
analogous
#174895 #251795 #641795
triadic
#251795 #952517 #179525
tetradic
#251795 #951748 #879517 #179564
square
#251795 #951748 #879517 #179564
split-complementary
#251795 #956417 #489517
monochromatic
#0B072B #180F60 #251795 #321FCA #5644E2

Accessibility & contrast

On white

12.84
#251795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#251795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251795
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251795#FFFFFF#000000##FFFFFF
##2517951.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003798
Deuteranopia (green-blind)
#002C93
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #251795;
/* rgb */ color: rgb(37, 23, 149);
/* oklch */ color: oklch(33.7% 0.188 274.4);
Tailwind
colors: {
  custom: {
    50: '#7459b6',
    500: '#251795',
    950: '#000000',
  },
}
SCSS
$custom: #251795;
$custom-light: #7459b6;
$custom-dark: #000000;
JSON
{
  "hex": "#251795",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 149
  },
  "hsl": {
    "h": 246.667,
    "s": 73.256,
    "l": 33.725
  },
  "oklch": {
    "l": 0.33724,
    "c": 0.18821,
    "h": 274.4
  },
  "luminance": 0.03176
}

Semantic roles & 50–950 ramp

primary
#251795
secondary
#B5C345
accent
#F038DB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #251795

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

Preview Lab → · Contrast checker → · Palette generator →

#251795 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva