#1F246D#1F246D

#1F246D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 30.8% C 0.125 H 273.5°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#1F246D
RGBrgb(31, 36, 109)
HSLhsl(236, 56%, 27%)
HSVhsv(236, 72%, 43%)
CMYKcmyk(71.6%, 67%, 0%, 57.3%)
CIE-LABlab(18.61, 24.07, -43.08)
CIE-LCHlch(18.61, 49.35, 299.19°)
OKLaboklab(30.81% 0.0076 -0.1243)
OKLCHoklch(30.81% 0.125 273.5)
XYZxyz(3.9553, 2.6568, 14.7694)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F246D #6D681F
analogous
#1F4B6D #1F246D #411F6D
triadic
#1F246D #6D1F24 #246D1F
tetradic
#1F246D #6D1F4B #6D681F #1F6D41
square
#1F246D #6D1F4B #6D681F #1F6D41
split-complementary
#1F246D #6D411F #4B6D1F
monochromatic
#070818 #11143D #1F246D #2D349D #3E47C8

Accessibility & contrast

On white

13.71
#1F246D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F246D
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F246D#FFFFFF#000000##FFFFFF
##1F246D1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316F
Deuteranopia (green-blind)
#002A6C
Tritanopia (blue-blind)
#003745
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f246d;
/* rgb */ color: rgb(31, 36, 109);
/* oklch */ color: oklch(30.8% 0.125 273.5);
Tailwind
colors: {
  custom: {
    50: '#665e98',
    500: '#1f246d',
    950: '#000000',
  },
}
SCSS
$custom: #1f246d;
$custom-light: #665e98;
$custom-dark: #000000;
JSON
{
  "hex": "#1f246d",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 109
  },
  "hsl": {
    "h": 236.154,
    "s": 55.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30813,
    "c": 0.12456,
    "h": 273.5
  },
  "luminance": 0.02657
}

Semantic roles & 50–950 ramp

primary
#1F246D
secondary
#A19B47
accent
#D549DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #1F246D

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

Preview Lab → · Contrast checker → · Palette generator →

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