#1F2F8E#1F2F8E

#1F2F8E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.1% C 0.157 H 269.1°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#1F2F8E
RGBrgb(31, 47, 142)
HSLhsl(231, 64%, 34%)
HSVhsv(231, 78%, 56%)
CMYKcmyk(78.2%, 66.9%, 0%, 44.3%)
CIE-LABlab(24.57, 29.22, -54.25)
CIE-LCHlch(24.57, 61.62, 298.31°)
OKLaboklab(36.13% -0.0023 -0.157)
OKLCHoklch(36.13% 0.157 269.1)
XYZxyz(6.4624, 4.2766, 26.0708)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F8E #8E7E1F
analogous
#1F678E #1F2F8E #471F8E
triadic
#1F2F8E #8E1F2F #2F8E1F
tetradic
#1F2F8E #8E1F67 #8E7E1F #1F8E47
square
#1F2F8E #8E1F67 #8E7E1F #1F8E47
split-complementary
#1F2F8E #8E471F #678E1F
monochromatic
#090E2A #141E5C #1F2F8E #2A40C0 #4F63D9

Accessibility & contrast

On white

11.32
#1F2F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#1F2F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F8E
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F8E#FFFFFF#000000##FFFFFF
##1F2F8E1.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f2f8e;
/* rgb */ color: rgb(31, 47, 142);
/* oklch */ color: oklch(36.1% 0.157 269.1);
Tailwind
colors: {
  custom: {
    50: '#6e67b0',
    500: '#1f2f8e',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f8e;
$custom-light: #6e67b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f8e",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 231.351,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36131,
    "c": 0.15698,
    "h": 269.1
  },
  "luminance": 0.04277
}

Semantic roles & 50–950 ramp

primary
#1F2F8E
secondary
#BBAC4D
accent
#CF41E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1F2F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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