#1F366A#1F366A

#1F366A is a dark, moderate blue. Relative luminance 0.040; OKLCH L 34.5% C 0.095 H 264.1°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#1F366A
RGBrgb(31, 54, 106)
HSLhsl(222, 55%, 27%)
HSVhsv(222, 71%, 42%)
CMYKcmyk(70.8%, 49.1%, 0%, 58.4%)
CIE-LABlab(23.57, 10.11, -33.11)
CIE-LCHlch(23.57, 34.62, 286.98°)
OKLaboklab(34.46% -0.0098 -0.0948)
OKLCHoklch(34.46% 0.095 264.1)
XYZxyz(4.4848, 3.9698, 14.1628)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F366A #6A531F
analogous
#1F5C6A #1F366A #2E1F6A
triadic
#1F366A #6A1F36 #366A1F
tetradic
#1F366A #6A1F5C #6A531F #1F6A2E
square
#1F366A #6A1F5C #6A531F #1F6A2E
split-complementary
#1F366A #6A2E1F #5C6A1F
monochromatic
#070C18 #111E3B #1F366A #2D4E99 #3D67C6

Accessibility & contrast

On white

11.71
#1F366A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1F366A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F366A
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F366A#FFFFFF#000000##FFFFFF
##1F366A1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3C6C
Deuteranopia (green-blind)
#0D3569
Tritanopia (blue-blind)
#00424A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f366a;
/* rgb */ color: rgb(31, 54, 106);
/* oklch */ color: oklch(34.5% 0.095 264.1);
Tailwind
colors: {
  custom: {
    50: '#646c95',
    500: '#1f366a',
    950: '#000000',
  },
}
SCSS
$custom: #1f366a;
$custom-light: #646c95;
$custom-dark: #000000;
JSON
{
  "hex": "#1f366a",
  "rgb": {
    "r": 31,
    "g": 54,
    "b": 106
  },
  "hsl": {
    "h": 221.6,
    "s": 54.745,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34459,
    "c": 0.09526,
    "h": 264.1
  },
  "luminance": 0.0397
}

Semantic roles & 50–950 ramp

primary
#1F366A
secondary
#9E8347
accent
#B14ADE
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#06070D
muted
#7A7A7E

Preview Lab

Preview with #1F366A

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

Preview Lab → · Contrast checker → · Palette generator →

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