#1F246F#1F246F

#1F246F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.0% C 0.127 H 273.3°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#1F246F
RGBrgb(31, 36, 111)
HSLhsl(236, 56%, 28%)
HSVhsv(236, 72%, 44%)
CMYKcmyk(72.1%, 67.6%, 0%, 56.5%)
CIE-LABlab(18.80, 24.84, -44.07)
CIE-LCHlch(18.80, 50.59, 299.40°)
OKLaboklab(31.01% 0.0074 -0.1272)
OKLCHoklch(31.01% 0.127 273.3)
XYZxyz(4.0642, 2.7004, 15.3429)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F246F #6F6A1F
analogous
#1F4C6F #1F246F #421F6F
triadic
#1F246F #6F1F24 #246F1F
tetradic
#1F246F #6F1F4C #6F6A1F #1F6F42
square
#1F246F #6F1F4C #6F6A1F #1F6F42
split-complementary
#1F246F #6F421F #4C6F1F
monochromatic
#070818 #12143F #1F246F #2C349F #3F48C9

Accessibility & contrast

On white

13.63
#1F246F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1F246F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F246F
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F246F#FFFFFF#000000##FFFFFF
##1F246F1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#002A6E
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f246f;
/* rgb */ color: rgb(31, 36, 111);
/* oklch */ color: oklch(31.0% 0.127 273.3);
Tailwind
colors: {
  custom: {
    50: '#675e99',
    500: '#1f246f',
    950: '#000000',
  },
}
SCSS
$custom: #1f246f;
$custom-light: #675e99;
$custom-dark: #000000;
JSON
{
  "hex": "#1f246f",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 111
  },
  "hsl": {
    "h": 236.25,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31009,
    "c": 0.12745,
    "h": 273.3
  },
  "luminance": 0.02701
}

Semantic roles & 50–950 ramp

primary
#1F246F
secondary
#A39D47
accent
#D648E0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F246F

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

Preview Lab → · Contrast checker → · Palette generator →

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