#1F247C#1F247C

#1F247C is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.146 H 272.4°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#1F247C
RGBrgb(31, 36, 124)
HSLhsl(237, 60%, 30%)
HSVhsv(237, 75%, 49%)
CMYKcmyk(75%, 71%, 0%, 51.4%)
CIE-LABlab(20.08, 29.74, -50.32)
CIE-LCHlch(20.08, 58.45, 300.58°)
OKLaboklab(32.32% 0.0061 -0.1455)
OKLCHoklch(32.32% 0.146 272.4)
XYZxyz(4.8328, 3.0078, 19.3907)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F247C #7C771F
analogous
#1F527C #1F247C #481F7C
triadic
#1F247C #7C1F24 #247C1F
tetradic
#1F247C #7C1F52 #7C771F #1F7C48
square
#1F247C #7C1F52 #7C771F #1F7C48
split-complementary
#1F247C #7C481F #527C1F
monochromatic
#07081A #13164B #1F247C #2B32AD #454CD0

Accessibility & contrast

On white

13.11
#1F247C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#1F247C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F247C
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F247C#FFFFFF#000000##FFFFFF
##1F247C1.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f247c;
/* rgb */ color: rgb(31, 36, 124);
/* oklch */ color: oklch(32.3% 0.146 272.4);
Tailwind
colors: {
  custom: {
    50: '#6a5fa3',
    500: '#1f247c',
    950: '#000000',
  },
}
SCSS
$custom: #1f247c;
$custom-light: #6a5fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f247c",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 124
  },
  "hsl": {
    "h": 236.774,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32324,
    "c": 0.14566,
    "h": 272.4
  },
  "luminance": 0.03008
}

Semantic roles & 50–950 ramp

primary
#1F247C
secondary
#AFAA48
accent
#DB45E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1F247C

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

Preview Lab → · Contrast checker → · Palette generator →

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