#1F2288#1F2288

#1F2288 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.164 H 271.9°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#1F2288
RGBrgb(31, 34, 136)
HSLhsl(238, 63%, 33%)
HSVhsv(238, 77%, 53%)
CMYKcmyk(77.2%, 75%, 0%, 46.7%)
CIE-LABlab(20.87, 35.38, -56.58)
CIE-LCHlch(20.87, 66.73, 302.02°)
OKLaboklab(33.28% 0.0055 -0.1638)
OKLCHoklch(33.28% 0.164 271.9)
XYZxyz(5.5795, 3.2123, 23.6138)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2288 #88851F
analogous
#1F5688 #1F2288 #511F88
triadic
#1F2288 #881F22 #22881F
tetradic
#1F2288 #881F56 #88851F #1F8851
square
#1F2288 #881F56 #88851F #1F8851
split-complementary
#1F2288 #88511F #56881F
monochromatic
#080924 #141656 #1F2288 #2A2EBA #4B4FD6

Accessibility & contrast

On white

12.78
#1F2288 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2288
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2288#FFFFFF#000000##FFFFFF
##1F22881.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#002D86
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f2288;
/* rgb */ color: rgb(31, 34, 136);
/* oklch */ color: oklch(33.3% 0.164 271.9);
Tailwind
colors: {
  custom: {
    50: '#6d5eac',
    500: '#1f2288',
    950: '#000000',
  },
}
SCSS
$custom: #1f2288;
$custom-light: #6d5eac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2288",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 136
  },
  "hsl": {
    "h": 238.286,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33278,
    "c": 0.16387,
    "h": 271.9
  },
  "luminance": 0.03213
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F2288

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

Preview Lab → · Contrast checker → · Palette generator →

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