#1F2287#1F2287

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

Color values

HEX#1F2287
RGBrgb(31, 34, 135)
HSLhsl(238, 63%, 33%)
HSVhsv(238, 77%, 53%)
CMYKcmyk(77%, 74.8%, 0%, 47.1%)
CIE-LABlab(20.77, 35.02, -56.14)
CIE-LCHlch(20.77, 66.17, 301.96°)
OKLaboklab(33.17% 0.0056 -0.1625)
OKLCHoklch(33.17% 0.163 272)
XYZxyz(5.5088, 3.1840, 23.2412)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2287 #87841F
analogous
#1F5687 #1F2287 #501F87
triadic
#1F2287 #871F22 #22871F
tetradic
#1F2287 #871F56 #87841F #1F8750
square
#1F2287 #871F56 #87841F #1F8750
split-complementary
#1F2287 #87501F #56871F
monochromatic
#080923 #141555 #1F2287 #2A2FB9 #4B4FD6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F2287#FFFFFF#000000##FFFFFF
##1F22871.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)
#00378A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f2287;
/* rgb */ color: rgb(31, 34, 135);
/* oklch */ color: oklch(33.2% 0.163 272.0);
Tailwind
colors: {
  custom: {
    50: '#6d5eab',
    500: '#1f2287',
    950: '#000000',
  },
}
SCSS
$custom: #1f2287;
$custom-light: #6d5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2287",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 238.269,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33168,
    "c": 0.16257,
    "h": 272
  },
  "luminance": 0.03185
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F2287

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

Preview Lab → · Contrast checker → · Palette generator →

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