#1F247E#1F247E

#1F247E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.148 H 272.3°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#1F247E
RGBrgb(31, 36, 126)
HSLhsl(237, 61%, 31%)
HSVhsv(237, 75%, 49%)
CMYKcmyk(75.4%, 71.4%, 0%, 50.6%)
CIE-LABlab(20.28, 30.48, -51.26)
CIE-LCHlch(20.28, 59.64, 300.74°)
OKLaboklab(32.53% 0.0059 -0.1483)
OKLCHoklch(32.53% 0.148 272.3)
XYZxyz(4.9606, 3.0589, 20.0636)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F247E #7E791F
analogous
#1F537E #1F247E #491F7E
triadic
#1F247E #7E1F24 #247E1F
tetradic
#1F247E #7E1F53 #7E791F #1F7E49
square
#1F247E #7E1F53 #7E791F #1F7E49
split-complementary
#1F247E #7E491F #537E1F
monochromatic
#07081C #13164D #1F247E #2B32AF #464DD1

Accessibility & contrast

On white

13.03
#1F247E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1F247E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F247E
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F247E#FFFFFF#000000##FFFFFF
##1F247E1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f247e;
/* rgb */ color: rgb(31, 36, 126);
/* oklch */ color: oklch(32.5% 0.148 272.3);
Tailwind
colors: {
  custom: {
    50: '#6b5fa4',
    500: '#1f247e',
    950: '#000000',
  },
}
SCSS
$custom: #1f247e;
$custom-light: #6b5fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f247e",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 126
  },
  "hsl": {
    "h": 236.842,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32533,
    "c": 0.14838,
    "h": 272.3
  },
  "luminance": 0.03059
}

Semantic roles & 50–950 ramp

primary
#1F247E
secondary
#B1AC48
accent
#DB44E4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1F247E

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

Preview Lab → · Contrast checker → · Palette generator →

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