#1F246C#1F246C

#1F246C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.7% C 0.123 H 273.6°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#1F246C
RGBrgb(31, 36, 108)
HSLhsl(236, 55%, 27%)
HSVhsv(236, 71%, 42%)
CMYKcmyk(71.3%, 66.7%, 0%, 57.6%)
CIE-LABlab(18.52, 23.69, -42.59)
CIE-LCHlch(18.52, 48.73, 299.09°)
OKLaboklab(30.72% 0.0076 -0.1229)
OKLCHoklch(30.72% 0.123 273.6)
XYZxyz(3.9018, 2.6354, 14.4875)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F246C #6C671F
analogous
#1F4B6C #1F246C #411F6C
triadic
#1F246C #6C1F24 #246C1F
tetradic
#1F246C #6C1F4B #6C671F #1F6C41
square
#1F246C #6C1F4B #6C671F #1F6C41
split-complementary
#1F246C #6C411F #4B6C1F
monochromatic
#070818 #11143C #1F246C #2D349C #3E47C8

Accessibility & contrast

On white

13.75
#1F246C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1F246C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F246C
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F246C#FFFFFF#000000##FFFFFF
##1F246C1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#002A6B
Tritanopia (blue-blind)
#003644
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f246c;
/* rgb */ color: rgb(31, 36, 108);
/* oklch */ color: oklch(30.7% 0.123 273.6);
Tailwind
colors: {
  custom: {
    50: '#665e97',
    500: '#1f246c',
    950: '#000000',
  },
}
SCSS
$custom: #1f246c;
$custom-light: #665e97;
$custom-dark: #000000;
JSON
{
  "hex": "#1f246c",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 108
  },
  "hsl": {
    "h": 236.104,
    "s": 55.396,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30716,
    "c": 0.12311,
    "h": 273.6
  },
  "luminance": 0.02636
}

Semantic roles & 50–950 ramp

primary
#1F246C
secondary
#A09A47
accent
#D549DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1F246C

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

Preview Lab → · Contrast checker → · Palette generator →

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