#1F2894#1F2894

#1F2894 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.173 H 270.3°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#1F2894
RGBrgb(31, 40, 148)
HSLhsl(235, 65%, 35%)
HSVhsv(235, 79%, 58%)
CMYKcmyk(79.1%, 73%, 0%, 42%)
CIE-LABlab(23.49, 35.98, -59.73)
CIE-LCHlch(23.49, 69.73, 301.07°)
OKLaboklab(35.53% 0.0008 -0.1729)
OKLCHoklch(35.53% 0.173 270.3)
XYZxyz(6.6673, 3.9463, 28.4215)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2894 #948B1F
analogous
#1F6294 #1F2894 #511F94
triadic
#1F2894 #941F28 #28941F
tetradic
#1F2894 #941F62 #948B1F #1F9451
square
#1F2894 #941F62 #948B1F #1F9451
split-complementary
#1F2894 #94511F #62941F
monochromatic
#0A0D2F #141A61 #1F2894 #2A36C7 #535DDB

Accessibility & contrast

On white

11.74
#1F2894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1F2894 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2894
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2894#FFFFFF#000000##FFFFFF
##1F28941.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E97
Deuteranopia (green-blind)
#003292
Tritanopia (blue-blind)
#00475B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2894;
/* rgb */ color: rgb(31, 40, 148);
/* oklch */ color: oklch(35.5% 0.173 270.3);
Tailwind
colors: {
  custom: {
    50: '#7063b5',
    500: '#1f2894',
    950: '#000000',
  },
}
SCSS
$custom: #1f2894;
$custom-light: #7063b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2894",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 148
  },
  "hsl": {
    "h": 235.385,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35535,
    "c": 0.17295,
    "h": 270.3
  },
  "luminance": 0.03947
}

Semantic roles & 50–950 ramp

primary
#1F2894
secondary
#BEB651
accent
#DB3FE8
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2894

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

Preview Lab → · Contrast checker → · Palette generator →

#1F2894 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva