#1F2F7A#1F2F7A

#1F2F7A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.2% C 0.129 H 269.2°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#1F2F7A
RGBrgb(31, 47, 122)
HSLhsl(229, 59%, 30%)
HSVhsv(229, 75%, 48%)
CMYKcmyk(74.6%, 61.5%, 0%, 52.2%)
CIE-LABlab(22.75, 21.46, -44.67)
CIE-LCHlch(22.75, 49.56, 295.66°)
OKLaboklab(34.23% -0.0018 -0.1289)
OKLCHoklch(34.23% 0.129 269.2)
XYZxyz(5.0932, 3.7290, 18.8599)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F7A #7A6A1F
analogous
#1F5C7A #1F2F7A #3D1F7A
triadic
#1F2F7A #7A1F2F #2F7A1F
tetradic
#1F2F7A #7A1F5C #7A6A1F #1F7A3D
square
#1F2F7A #7A1F5C #7A6A1F #1F7A3D
split-complementary
#1F2F7A #7A3D1F #5C7A1F
monochromatic
#060918 #131C49 #1F2F7A #2B42AB #445CCF

Accessibility & contrast

On white

12.03
#1F2F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1F2F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F7A
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F7A#FFFFFF#000000##FFFFFF
##1F2F7A1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7D
Deuteranopia (green-blind)
#003279
Tritanopia (blue-blind)
#00424F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2f7a;
/* rgb */ color: rgb(31, 47, 122);
/* oklch */ color: oklch(34.2% 0.129 269.2);
Tailwind
colors: {
  custom: {
    50: '#6967a1',
    500: '#1f2f7a',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f7a;
$custom-light: #6967a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f7a",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 122
  },
  "hsl": {
    "h": 229.451,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.34234,
    "c": 0.12888,
    "h": 269.2
  },
  "luminance": 0.03729
}

Semantic roles & 50–950 ramp

primary
#1F2F7A
secondary
#AD9B47
accent
#C745E3
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F2F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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