#1F247F#1F247F

#1F247F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.150 H 272.2°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#1F247F
RGBrgb(31, 36, 127)
HSLhsl(237, 61%, 31%)
HSVhsv(237, 76%, 50%)
CMYKcmyk(75.6%, 71.7%, 0%, 50.2%)
CIE-LABlab(20.38, 30.85, -51.73)
CIE-LCHlch(20.38, 60.23, 300.81°)
OKLaboklab(32.64% 0.0057 -0.1496)
OKLCHoklch(32.64% 0.15 272.2)
XYZxyz(5.0254, 3.0848, 20.4051)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F247F #7F7A1F
analogous
#1F547F #1F247F #4A1F7F
triadic
#1F247F #7F1F24 #247F1F
tetradic
#1F247F #7F1F54 #7F7A1F #1F7F4A
square
#1F247F #7F1F54 #7F7A1F #1F7F4A
split-complementary
#1F247F #7F4A1F #547F1F
monochromatic
#07081D #13164E #1F247F #2B32B0 #464ED2

Accessibility & contrast

On white

12.99
#1F247F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1F247F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F247F
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F247F#FFFFFF#000000##FFFFFF
##1F247F1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f247f;
/* rgb */ color: rgb(31, 36, 127);
/* oklch */ color: oklch(32.6% 0.150 272.2);
Tailwind
colors: {
  custom: {
    50: '#6b5fa5',
    500: '#1f247f',
    950: '#000000',
  },
}
SCSS
$custom: #1f247f;
$custom-light: #6b5fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f247f",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 127
  },
  "hsl": {
    "h": 236.875,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32638,
    "c": 0.14973,
    "h": 272.2
  },
  "luminance": 0.03085
}

Semantic roles & 50–950 ramp

primary
#1F247F
secondary
#B2AC48
accent
#DC44E4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1F247F

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

Preview Lab → · Contrast checker → · Palette generator →

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