#1F247D#1F247D

#1F247D is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.147 H 272.3°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#1F247D
RGBrgb(31, 36, 125)
HSLhsl(237, 60%, 31%)
HSVhsv(237, 75%, 49%)
CMYKcmyk(75.2%, 71.2%, 0%, 51%)
CIE-LABlab(20.18, 30.11, -50.79)
CIE-LCHlch(20.18, 59.05, 300.66°)
OKLaboklab(32.43% 0.006 -0.1469)
OKLCHoklch(32.43% 0.147 272.3)
XYZxyz(4.8964, 3.0332, 19.7255)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F247D #7D781F
analogous
#1F537D #1F247D #491F7D
triadic
#1F247D #7D1F24 #247D1F
tetradic
#1F247D #7D1F53 #7D781F #1F7D49
square
#1F247D #7D1F53 #7D781F #1F7D49
split-complementary
#1F247D #7D491F #537D1F
monochromatic
#07081B #13164C #1F247D #2B32AE #454DD1

Accessibility & contrast

On white

13.07
#1F247D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F247D
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F247D#FFFFFF#000000##FFFFFF
##1F247D1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f247d;
/* rgb */ color: rgb(31, 36, 125);
/* oklch */ color: oklch(32.4% 0.147 272.3);
Tailwind
colors: {
  custom: {
    50: '#6a5fa4',
    500: '#1f247d',
    950: '#000000',
  },
}
SCSS
$custom: #1f247d;
$custom-light: #6a5fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f247d",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 125
  },
  "hsl": {
    "h": 236.809,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32429,
    "c": 0.14702,
    "h": 272.3
  },
  "luminance": 0.03034
}

Semantic roles & 50–950 ramp

primary
#1F247D
secondary
#B0AB48
accent
#DB44E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1F247D

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

Preview Lab → · Contrast checker → · Palette generator →

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