#1F336A#1F336A

#1F336A is a dark, moderate blue. Relative luminance 0.037; OKLCH L 33.8% C 0.099 H 266.2°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#1F336A
RGBrgb(31, 51, 106)
HSLhsl(224, 55%, 27%)
HSVhsv(224, 71%, 42%)
CMYKcmyk(70.8%, 51.9%, 0%, 58.4%)
CIE-LABlab(22.65, 12.24, -34.59)
CIE-LCHlch(22.65, 36.69, 289.49°)
OKLaboklab(33.76% -0.0066 -0.0992)
OKLCHoklch(33.76% 0.099 266.2)
XYZxyz(4.3495, 3.6991, 14.1177)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F336A #6A561F
analogous
#1F596A #1F336A #311F6A
triadic
#1F336A #6A1F33 #336A1F
tetradic
#1F336A #6A1F59 #6A561F #1F6A31
square
#1F336A #6A1F59 #6A561F #1F6A31
split-complementary
#1F336A #6A311F #596A1F
monochromatic
#070B18 #111C3B #1F336A #2D4A99 #3D62C6

Accessibility & contrast

On white

12.07
#1F336A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1F336A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F336A
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F336A#FFFFFF#000000##FFFFFF
##1F336A1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153A6C
Deuteranopia (green-blind)
#023369
Tritanopia (blue-blind)
#004049
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f336a;
/* rgb */ color: rgb(31, 51, 106);
/* oklch */ color: oklch(33.8% 0.099 266.2);
Tailwind
colors: {
  custom: {
    50: '#646a95',
    500: '#1f336a',
    950: '#000000',
  },
}
SCSS
$custom: #1f336a;
$custom-light: #646a95;
$custom-dark: #000000;
JSON
{
  "hex": "#1f336a",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 106
  },
  "hsl": {
    "h": 224,
    "s": 54.745,
    "l": 26.863
  },
  "oklch": {
    "l": 0.33756,
    "c": 0.09938,
    "h": 266.2
  },
  "luminance": 0.037
}

Semantic roles & 50–950 ramp

primary
#1F336A
secondary
#9E8747
accent
#B74ADE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #1F336A

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

Preview Lab → · Contrast checker → · Palette generator →

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