#1F366E#1F366E

#1F366E is a dark, moderate blue. Relative luminance 0.041; OKLCH L 34.8% C 0.101 H 264.8°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#1F366E
RGBrgb(31, 54, 110)
HSLhsl(223, 56%, 28%)
HSVhsv(223, 72%, 43%)
CMYKcmyk(71.8%, 50.9%, 0%, 56.9%)
CIE-LABlab(23.85, 11.71, -35.23)
CIE-LCHlch(23.85, 37.13, 288.39°)
OKLaboklab(34.76% -0.0091 -0.101)
OKLCHoklch(34.76% 0.101 264.8)
XYZxyz(4.6977, 4.0550, 15.2839)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F366E #6E571F
analogous
#1F5D6E #1F366E #301F6E
triadic
#1F366E #6E1F36 #366E1F
tetradic
#1F366E #6E1F5D #6E571F #1F6E30
square
#1F366E #6E1F5D #6E571F #1F6E30
split-complementary
#1F366E #6E301F #5D6E1F
monochromatic
#070C18 #121F3E #1F366E #2C4D9E #3F67C9

Accessibility & contrast

On white

11.60
#1F366E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#1F366E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F366E
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F366E#FFFFFF#000000##FFFFFF
##1F366E1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183D70
Deuteranopia (green-blind)
#04356D
Tritanopia (blue-blind)
#00434C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f366e;
/* rgb */ color: rgb(31, 54, 110);
/* oklch */ color: oklch(34.8% 0.101 264.8);
Tailwind
colors: {
  custom: {
    50: '#656c98',
    500: '#1f366e',
    950: '#000000',
  },
}
SCSS
$custom: #1f366e;
$custom-light: #656c98;
$custom-dark: #000000;
JSON
{
  "hex": "#1f366e",
  "rgb": {
    "r": 31,
    "g": 54,
    "b": 110
  },
  "hsl": {
    "h": 222.532,
    "s": 56.028,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34764,
    "c": 0.10141,
    "h": 264.8
  },
  "luminance": 0.04055
}

Semantic roles & 50–950 ramp

primary
#1F366E
secondary
#A28747
accent
#B348DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #1F366E

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

Preview Lab → · Contrast checker → · Palette generator →

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