#1F396E#1F396E

#1F396E is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.5% C 0.097 H 262.8°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#1F396E
RGBrgb(31, 57, 110)
HSLhsl(220, 56%, 28%)
HSVhsv(220, 72%, 43%)
CMYKcmyk(71.8%, 48.2%, 0%, 56.9%)
CIE-LABlab(24.77, 9.60, -33.75)
CIE-LCHlch(24.77, 35.09, 285.88°)
OKLaboklab(35.47% -0.0122 -0.0966)
OKLCHoklch(35.47% 0.097 262.8)
XYZxyz(4.8417, 4.3429, 15.3319)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F396E #6E541F
analogous
#1F606E #1F396E #2C1F6E
triadic
#1F396E #6E1F39 #396E1F
tetradic
#1F396E #6E1F60 #6E541F #1F6E2C
square
#1F396E #6E1F60 #6E541F #1F6E2C
split-complementary
#1F396E #6E2C1F #606E1F
monochromatic
#070C18 #12203E #1F396E #2C529E #3F6CC9

Accessibility & contrast

On white

11.24
#1F396E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#1F396E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F396E
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F396E#FFFFFF#000000##FFFFFF
##1F396E1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3F70
Deuteranopia (green-blind)
#0F376D
Tritanopia (blue-blind)
#00454E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f396e;
/* rgb */ color: rgb(31, 57, 110);
/* oklch */ color: oklch(35.5% 0.097 262.8);
Tailwind
colors: {
  custom: {
    50: '#656e98',
    500: '#1f396e',
    950: '#000000',
  },
}
SCSS
$custom: #1f396e;
$custom-light: #656e98;
$custom-dark: #000000;
JSON
{
  "hex": "#1f396e",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 110
  },
  "hsl": {
    "h": 220.253,
    "s": 56.028,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3547,
    "c": 0.09736,
    "h": 262.8
  },
  "luminance": 0.04343
}

Semantic roles & 50–950 ramp

primary
#1F396E
secondary
#A28447
accent
#AE48DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070D
muted
#7A7A7E

Preview Lab

Preview with #1F396E

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

Preview Lab → · Contrast checker → · Palette generator →

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