#1F2892#1F2892

#1F2892 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.170 H 270.4°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#1F2892
RGBrgb(31, 40, 146)
HSLhsl(235, 65%, 35%)
HSVhsv(235, 79%, 57%)
CMYKcmyk(78.8%, 72.6%, 0%, 42.7%)
CIE-LABlab(23.28, 35.26, -58.84)
CIE-LCHlch(23.28, 68.59, 300.93°)
OKLaboklab(35.32% 0.0011 -0.1704)
OKLCHoklch(35.32% 0.17 270.4)
XYZxyz(6.5104, 3.8835, 27.5950)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2892 #92891F
analogous
#1F6292 #1F2892 #4F1F92
triadic
#1F2892 #921F28 #28921F
tetradic
#1F2892 #921F62 #92891F #1F924F
square
#1F2892 #921F62 #92891F #1F924F
split-complementary
#1F2892 #924F1F #62921F
monochromatic
#0A0C2D #141A60 #1F2892 #2A36C4 #515CDA

Accessibility & contrast

On white

11.82
#1F2892 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1F2892 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2892
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2892#FFFFFF#000000##FFFFFF
##1F28921.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D95
Deuteranopia (green-blind)
#003290
Tritanopia (blue-blind)
#00465A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2892;
/* rgb */ color: rgb(31, 40, 146);
/* oklch */ color: oklch(35.3% 0.170 270.4);
Tailwind
colors: {
  custom: {
    50: '#6f62b3',
    500: '#1f2892',
    950: '#000000',
  },
}
SCSS
$custom: #1f2892;
$custom-light: #6f62b3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2892",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 146
  },
  "hsl": {
    "h": 235.304,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35321,
    "c": 0.17037,
    "h": 270.4
  },
  "luminance": 0.03884
}

Semantic roles & 50–950 ramp

primary
#1F2892
secondary
#BDB550
accent
#DB40E8
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2892

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

Preview Lab → · Contrast checker → · Palette generator →

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