#251895#251895

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

Color values

HEX#251895
RGBrgb(37, 24, 149)
HSLhsl(246, 72%, 34%)
HSVhsv(246, 84%, 58%)
CMYKcmyk(75.2%, 83.9%, 0%, 41.6%)
CIE-LABlab(20.89, 45.60, -64.64)
CIE-LCHlch(20.89, 79.11, 305.20°)
OKLaboklab(33.83% 0.0142 -0.1869)
OKLCHoklch(33.83% 0.187 274.4)
XYZxyz(6.5126, 3.2158, 28.7054)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251895 #889518
analogous
#184A95 #251895 #641895
triadic
#251895 #952518 #189525
tetradic
#251895 #95184A #889518 #189564
square
#251895 #95184A #889518 #189564
split-complementary
#251895 #956418 #4A9518
monochromatic
#0B072C #181060 #251895 #3220CA #5646E1

Accessibility & contrast

On white

12.78
#251895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #251895
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251895#FFFFFF#000000##FFFFFF
##2518951.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #251895;
/* rgb */ color: rgb(37, 24, 149);
/* oklch */ color: oklch(33.8% 0.187 274.4);
Tailwind
colors: {
  custom: {
    50: '#7459b6',
    500: '#251895',
    950: '#000000',
  },
}
SCSS
$custom: #251895;
$custom-light: #7459b6;
$custom-dark: #000000;
JSON
{
  "hex": "#251895",
  "rgb": {
    "r": 37,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 246.24,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33831,
    "c": 0.18746,
    "h": 274.4
  },
  "luminance": 0.03217
}

Semantic roles & 50–950 ramp

primary
#251895
secondary
#B6C246
accent
#EF39DC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #251895

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

Preview Lab → · Contrast checker → · Palette generator →

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