#251894#251894

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

Color values

HEX#251894
RGBrgb(37, 24, 148)
HSLhsl(246, 72%, 34%)
HSVhsv(246, 84%, 58%)
CMYKcmyk(75%, 83.8%, 0%, 42%)
CIE-LABlab(20.77, 45.29, -64.23)
CIE-LCHlch(20.77, 78.59, 305.19°)
OKLaboklab(33.71% 0.0145 -0.1857)
OKLCHoklch(33.71% 0.186 274.5)
XYZxyz(6.4331, 3.1841, 28.2868)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251894 #879418
analogous
#184994 #251894 #631894
triadic
#251894 #942518 #189425
tetradic
#251894 #941849 #879418 #189463
square
#251894 #941849 #879418 #189463
split-complementary
#251894 #946318 #499418
monochromatic
#0B072B #180F5F #251894 #3221C9 #5645E1

Accessibility & contrast

On white

12.83
#251894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #251894
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251894#FFFFFF#000000##FFFFFF
##2518941.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003797
Deuteranopia (green-blind)
#002C92
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #251894;
/* rgb */ color: rgb(37, 24, 148);
/* oklch */ color: oklch(33.7% 0.186 274.5);
Tailwind
colors: {
  custom: {
    50: '#7459b5',
    500: '#251894',
    950: '#000000',
  },
}
SCSS
$custom: #251894;
$custom-light: #7459b5;
$custom-dark: #000000;
JSON
{
  "hex": "#251894",
  "rgb": {
    "r": 37,
    "g": 24,
    "b": 148
  },
  "hsl": {
    "h": 246.29,
    "s": 72.093,
    "l": 33.725
  },
  "oklch": {
    "l": 0.33712,
    "c": 0.18628,
    "h": 274.5
  },
  "luminance": 0.03185
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #251894

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

Preview Lab → · Contrast checker → · Palette generator →

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