#1F386E#1F386E

#1F386E is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.2% C 0.099 H 263.5°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#1F386E
RGBrgb(31, 56, 110)
HSLhsl(221, 56%, 28%)
HSVhsv(221, 72%, 43%)
CMYKcmyk(71.8%, 49.1%, 0%, 56.9%)
CIE-LABlab(24.47, 10.30, -34.25)
CIE-LCHlch(24.47, 35.76, 286.74°)
OKLaboklab(35.23% -0.0112 -0.0981)
OKLCHoklch(35.23% 0.099 263.5)
XYZxyz(4.7927, 4.2450, 15.3156)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F386E #6E551F
analogous
#1F5F6E #1F386E #2E1F6E
triadic
#1F386E #6E1F38 #386E1F
tetradic
#1F386E #6E1F5F #6E551F #1F6E2E
square
#1F386E #6E1F5F #6E551F #1F6E2E
split-complementary
#1F386E #6E2E1F #5F6E1F
monochromatic
#070C18 #12203E #1F386E #2C509E #3F6AC9

Accessibility & contrast

On white

11.36
#1F386E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#1F386E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F386E
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F386E#FFFFFF#000000##FFFFFF
##1F386E1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3E70
Deuteranopia (green-blind)
#0C376D
Tritanopia (blue-blind)
#00454D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f386e;
/* rgb */ color: rgb(31, 56, 110);
/* oklch */ color: oklch(35.2% 0.099 263.5);
Tailwind
colors: {
  custom: {
    50: '#656e98',
    500: '#1f386e',
    950: '#000000',
  },
}
SCSS
$custom: #1f386e;
$custom-light: #656e98;
$custom-dark: #000000;
JSON
{
  "hex": "#1f386e",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 110
  },
  "hsl": {
    "h": 221.013,
    "s": 56.028,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35233,
    "c": 0.09871,
    "h": 263.5
  },
  "luminance": 0.04245
}

Semantic roles & 50–950 ramp

primary
#1F386E
secondary
#A28547
accent
#B048DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070D
muted
#7A7A7E

Preview Lab

Preview with #1F386E

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

Preview Lab → · Contrast checker → · Palette generator →

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