#1F2389#1F2389

#1F2389 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.164 H 271.7°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#1F2389
RGBrgb(31, 35, 137)
HSLhsl(238, 63%, 33%)
HSVhsv(238, 77%, 54%)
CMYKcmyk(77.4%, 74.5%, 0%, 46.3%)
CIE-LABlab(21.20, 35.12, -56.67)
CIE-LCHlch(21.20, 66.67, 301.79°)
OKLaboklab(33.55% 0.0048 -0.164)
OKLCHoklch(33.55% 0.164 271.7)
XYZxyz(5.6799, 3.2989, 23.9995)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2389 #89851F
analogous
#1F5889 #1F2389 #501F89
triadic
#1F2389 #891F23 #23891F
tetradic
#1F2389 #891F58 #89851F #1F8950
square
#1F2389 #891F58 #89851F #1F8950
split-complementary
#1F2389 #89501F #58891F
monochromatic
#080925 #141657 #1F2389 #2A30BB #4C51D6

Accessibility & contrast

On white

12.65
#1F2389 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1F2389 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2389
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2389#FFFFFF#000000##FFFFFF
##1F23891.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388C
Deuteranopia (green-blind)
#002E87
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2389;
/* rgb */ color: rgb(31, 35, 137);
/* oklch */ color: oklch(33.5% 0.164 271.7);
Tailwind
colors: {
  custom: {
    50: '#6e5fad',
    500: '#1f2389',
    950: '#000000',
  },
}
SCSS
$custom: #1f2389;
$custom-light: #6e5fad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2389",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 137
  },
  "hsl": {
    "h": 237.736,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33545,
    "c": 0.1641,
    "h": 271.7
  },
  "luminance": 0.033
}

Semantic roles & 50–950 ramp

primary
#1F2389
secondary
#B9B54B
accent
#E042E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F2389

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

Preview Lab → · Contrast checker → · Palette generator →

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