#1F2189#1F2189

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

Color values

HEX#1F2189
RGBrgb(31, 33, 137)
HSLhsl(239, 63%, 33%)
HSVhsv(239, 77%, 54%)
CMYKcmyk(77.4%, 75.9%, 0%, 46.3%)
CIE-LABlab(20.77, 36.34, -57.39)
CIE-LCHlch(20.77, 67.92, 302.34°)
OKLaboklab(33.24% 0.0058 -0.1661)
OKLCHoklch(33.24% 0.166 272)
XYZxyz(5.6228, 3.1846, 23.9804)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2189 #89871F
analogous
#1F5689 #1F2189 #521F89
triadic
#1F2189 #891F21 #21891F
tetradic
#1F2189 #891F56 #89871F #1F8952
square
#1F2189 #891F56 #89871F #1F8952
split-complementary
#1F2189 #89521F #56891F
monochromatic
#080925 #141557 #1F2189 #2A2DBB #4C4FD6

Accessibility & contrast

On white

12.83
#1F2189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1F2189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##1F2189#FFFFFF#000000##FFFFFF
##1F21891.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)
#00378C
Deuteranopia (green-blind)
#002D87
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f2189;
/* rgb */ color: rgb(31, 33, 137);
/* oklch */ color: oklch(33.2% 0.166 272.0);
Tailwind
colors: {
  custom: {
    50: '#6e5dad',
    500: '#1f2189',
    950: '#000000',
  },
}
SCSS
$custom: #1f2189;
$custom-light: #6e5dad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2189",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 137
  },
  "hsl": {
    "h": 238.868,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33235,
    "c": 0.16621,
    "h": 272
  },
  "luminance": 0.03185
}

Semantic roles & 50–950 ramp

primary
#1F2189
secondary
#B9B74B
accent
#E342E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F2189

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

Preview Lab → · Contrast checker → · Palette generator →

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