#1F336F#1F336F

#1F336F is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.2% C 0.107 H 266.8°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#1F336F
RGBrgb(31, 51, 111)
HSLhsl(225, 56%, 28%)
HSVhsv(225, 72%, 44%)
CMYKcmyk(72.1%, 54.1%, 0%, 56.5%)
CIE-LABlab(23.02, 14.25, -37.21)
CIE-LCHlch(23.02, 39.85, 290.95°)
OKLaboklab(34.15% -0.006 -0.1069)
OKLCHoklch(34.15% 0.107 266.8)
XYZxyz(4.6171, 3.8062, 15.5272)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F336F #6F5B1F
analogous
#1F5B6F #1F336F #331F6F
triadic
#1F336F #6F1F33 #336F1F
tetradic
#1F336F #6F1F5B #6F5B1F #1F6F33
square
#1F336F #6F1F5B #6F5B1F #1F6F33
split-complementary
#1F336F #6F331F #5B6F1F
monochromatic
#070B18 #121D3F #1F336F #2C499F #3F62C9

Accessibility & contrast

On white

11.92
#1F336F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#1F336F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F336F
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F336F#FFFFFF#000000##FFFFFF
##1F336F1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3B71
Deuteranopia (green-blind)
#00336E
Tritanopia (blue-blind)
#00414B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f336f;
/* rgb */ color: rgb(31, 51, 111);
/* oklch */ color: oklch(34.2% 0.107 266.8);
Tailwind
colors: {
  custom: {
    50: '#666a99',
    500: '#1f336f',
    950: '#000000',
  },
}
SCSS
$custom: #1f336f;
$custom-light: #666a99;
$custom-dark: #000000;
JSON
{
  "hex": "#1f336f",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 111
  },
  "hsl": {
    "h": 225,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34154,
    "c": 0.10706,
    "h": 266.8
  },
  "luminance": 0.03807
}

Semantic roles & 50–950 ramp

primary
#1F336F
secondary
#A38C47
accent
#BA48E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #1F336F

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

Preview Lab → · Contrast checker → · Palette generator →

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