#1F247A#1F247A

#1F247A is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.1% C 0.143 H 272.5°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#1F247A
RGBrgb(31, 36, 122)
HSLhsl(237, 59%, 30%)
HSVhsv(237, 75%, 48%)
CMYKcmyk(74.6%, 70.5%, 0%, 52.2%)
CIE-LABlab(19.87, 28.99, -49.38)
CIE-LCHlch(19.87, 57.26, 300.42°)
OKLaboklab(32.12% 0.0063 -0.1428)
OKLCHoklch(32.12% 0.143 272.5)
XYZxyz(4.7076, 2.9577, 18.7314)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F247A #7A751F
analogous
#1F527A #1F247A #471F7A
triadic
#1F247A #7A1F24 #247A1F
tetradic
#1F247A #7A1F52 #7A751F #1F7A47
square
#1F247A #7A1F52 #7A751F #1F7A47
split-complementary
#1F247A #7A471F #527A1F
monochromatic
#060718 #131649 #1F247A #2B32AB #444CCF

Accessibility & contrast

On white

13.19
#1F247A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1F247A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F247A
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F247A#FFFFFF#000000##FFFFFF
##1F247A1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#002C78
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f247a;
/* rgb */ color: rgb(31, 36, 122);
/* oklch */ color: oklch(32.1% 0.143 272.5);
Tailwind
colors: {
  custom: {
    50: '#6a5fa1',
    500: '#1f247a',
    950: '#000000',
  },
}
SCSS
$custom: #1f247a;
$custom-light: #6a5fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f247a",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 122
  },
  "hsl": {
    "h": 236.703,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.32118,
    "c": 0.14291,
    "h": 272.5
  },
  "luminance": 0.02958
}

Semantic roles & 50–950 ramp

primary
#1F247A
secondary
#ADA847
accent
#DA45E3
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1F247A

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

Preview Lab → · Contrast checker → · Palette generator →

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