#1F289A#1F289A

#1F289A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.181 H 270.0°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#1F289A
RGBrgb(31, 40, 154)
HSLhsl(236, 66%, 36%)
HSVhsv(236, 80%, 60%)
CMYKcmyk(79.9%, 74%, 0%, 39.6%)
CIE-LABlab(24.13, 38.13, -62.36)
CIE-LCHlch(24.13, 73.09, 301.44°)
OKLaboklab(36.18% 0 -0.1806)
OKLCHoklch(36.18% 0.181 270)
XYZxyz(7.1546, 4.1412, 30.9878)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F289A #9A911F
analogous
#1F669A #1F289A #541F9A
triadic
#1F289A #9A1F28 #289A1F
tetradic
#1F289A #9A1F66 #9A911F #1F9A54
square
#1F289A #9A1F66 #9A911F #1F9A54
split-complementary
#1F289A #9A541F #669A1F
monochromatic
#0A0E34 #151B67 #1F289A #2935CD #5660DD

Accessibility & contrast

On white

11.49
#1F289A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#1F289A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F289A
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F289A#FFFFFF#000000##FFFFFF
##1F289A1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9D
Deuteranopia (green-blind)
#003398
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f289a;
/* rgb */ color: rgb(31, 40, 154);
/* oklch */ color: oklch(36.2% 0.181 270.0);
Tailwind
colors: {
  custom: {
    50: '#7263b9',
    500: '#1f289a',
    950: '#000000',
  },
}
SCSS
$custom: #1f289a;
$custom-light: #7263b9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f289a",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 154
  },
  "hsl": {
    "h": 235.61,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36184,
    "c": 0.18062,
    "h": 270
  },
  "luminance": 0.04142
}

Semantic roles & 50–950 ramp

primary
#1F289A
secondary
#C1B954
accent
#DD3EE9
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #1F289A

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

Preview Lab → · Contrast checker → · Palette generator →

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