#1F3370#1F3370

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

Color values

HEX#1F3370
RGBrgb(31, 51, 112)
HSLhsl(225, 57%, 28%)
HSVhsv(225, 72%, 44%)
CMYKcmyk(72.3%, 54.5%, 0%, 56.1%)
CIE-LABlab(23.10, 14.65, -37.73)
CIE-LCHlch(23.10, 40.48, 291.22°)
OKLaboklab(34.24% -0.0059 -0.1084)
OKLCHoklch(34.24% 0.109 266.9)
XYZxyz(4.6725, 3.8283, 15.8188)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3370 #705C1F
analogous
#1F5B70 #1F3370 #331F70
triadic
#1F3370 #701F33 #33701F
tetradic
#1F3370 #701F5B #705C1F #1F7033
square
#1F3370 #701F5B #705C1F #1F7033
split-complementary
#1F3370 #70331F #5B701F
monochromatic
#070B18 #121D40 #1F3370 #2C49A0 #3F62CA

Accessibility & contrast

On white

11.89
#1F3370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1F3370 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3370
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3370#FFFFFF#000000##FFFFFF
##1F33701.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3B72
Deuteranopia (green-blind)
#00346F
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f3370;
/* rgb */ color: rgb(31, 51, 112);
/* oklch */ color: oklch(34.2% 0.109 266.9);
Tailwind
colors: {
  custom: {
    50: '#666a99',
    500: '#1f3370',
    950: '#000000',
  },
}
SCSS
$custom: #1f3370;
$custom-light: #666a99;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3370",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 112
  },
  "hsl": {
    "h": 225.185,
    "s": 56.643,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34236,
    "c": 0.10858,
    "h": 266.9
  },
  "luminance": 0.03829
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F3370

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

Preview Lab → · Contrast checker → · Palette generator →

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