#1F2289#1F2289

#1F2289 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.165 H 271.8°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#1F2289
RGBrgb(31, 34, 137)
HSLhsl(238, 63%, 33%)
HSVhsv(238, 77%, 54%)
CMYKcmyk(77.4%, 75.2%, 0%, 46.3%)
CIE-LABlab(20.98, 35.73, -57.03)
CIE-LCHlch(20.98, 67.30, 302.07°)
OKLaboklab(33.39% 0.0053 -0.1651)
OKLCHoklch(33.39% 0.165 271.8)
XYZxyz(5.6509, 3.2409, 23.9898)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2289 #89861F
analogous
#1F5789 #1F2289 #511F89
triadic
#1F2289 #891F22 #22891F
tetradic
#1F2289 #891F57 #89861F #1F8951
square
#1F2289 #891F57 #89861F #1F8951
split-complementary
#1F2289 #89511F #57891F
monochromatic
#080925 #141657 #1F2289 #2A2EBB #4C50D6

Accessibility & contrast

On white

12.74
#1F2289 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1F2289 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2289
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2289#FFFFFF#000000##FFFFFF
##1F22891.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388C
Deuteranopia (green-blind)
#002D87
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f2289;
/* rgb */ color: rgb(31, 34, 137);
/* oklch */ color: oklch(33.4% 0.165 271.8);
Tailwind
colors: {
  custom: {
    50: '#6e5ead',
    500: '#1f2289',
    950: '#000000',
  },
}
SCSS
$custom: #1f2289;
$custom-light: #6e5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2289",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 137
  },
  "hsl": {
    "h": 238.302,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33388,
    "c": 0.16517,
    "h": 271.8
  },
  "luminance": 0.03242
}

Semantic roles & 50–950 ramp

primary
#1F2289
secondary
#B9B64B
accent
#E142E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F2289

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

Preview Lab → · Contrast checker → · Palette generator →

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