#1F246B#1F246B

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

Color values

HEX#1F246B
RGBrgb(31, 36, 107)
HSLhsl(236, 55%, 27%)
HSVhsv(236, 71%, 42%)
CMYKcmyk(71%, 66.4%, 0%, 58%)
CIE-LABlab(18.43, 23.31, -42.09)
CIE-LCHlch(18.43, 48.11, 298.98°)
OKLaboklab(30.62% 0.0077 -0.1214)
OKLCHoklch(30.62% 0.122 273.6)
XYZxyz(3.8489, 2.6142, 14.2088)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F246B #6B661F
analogous
#1F4A6B #1F246B #401F6B
triadic
#1F246B #6B1F24 #246B1F
tetradic
#1F246B #6B1F4A #6B661F #1F6B40
square
#1F246B #6B1F4A #6B661F #1F6B40
split-complementary
#1F246B #6B401F #4A6B1F
monochromatic
#070818 #11143C #1F246B #2D349A #3D47C7

Accessibility & contrast

On white

13.79
#1F246B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1F246B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F246B
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F246B#FFFFFF#000000##FFFFFF
##1F246B1.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#002A6A
Tritanopia (blue-blind)
#003643
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f246b;
/* rgb */ color: rgb(31, 36, 107);
/* oklch */ color: oklch(30.6% 0.122 273.6);
Tailwind
colors: {
  custom: {
    50: '#665e96',
    500: '#1f246b',
    950: '#000000',
  },
}
SCSS
$custom: #1f246b;
$custom-light: #665e96;
$custom-dark: #000000;
JSON
{
  "hex": "#1f246b",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 107
  },
  "hsl": {
    "h": 236.053,
    "s": 55.072,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30619,
    "c": 0.12165,
    "h": 273.6
  },
  "luminance": 0.02615
}

Semantic roles & 50–950 ramp

primary
#1F246B
secondary
#9F9947
accent
#D549DE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1F246B

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

Preview Lab → · Contrast checker → · Palette generator →

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