#1F2F70#1F2F70

#1F2F70 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.4% C 0.114 H 268.9°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#1F2F70
RGBrgb(31, 47, 112)
HSLhsl(228, 57%, 28%)
HSVhsv(228, 72%, 44%)
CMYKcmyk(72.3%, 58%, 0%, 56.1%)
CIE-LABlab(21.92, 17.50, -39.63)
CIE-LCHlch(21.92, 43.32, 293.82°)
OKLaboklab(33.35% -0.0021 -0.1141)
OKLCHoklch(33.35% 0.114 268.9)
XYZxyz(4.5052, 3.4937, 15.7630)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F70 #70601F
analogous
#1F5770 #1F2F70 #371F70
triadic
#1F2F70 #701F2F #2F701F
tetradic
#1F2F70 #701F57 #70601F #1F7037
square
#1F2F70 #701F57 #70601F #1F7037
split-complementary
#1F2F70 #70371F #57701F
monochromatic
#070A18 #121B40 #1F2F70 #2C43A0 #3F5BCA

Accessibility & contrast

On white

12.36
#1F2F70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1F2F70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F70
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F70#FFFFFF#000000##FFFFFF
##1F2F701.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003872
Deuteranopia (green-blind)
#00316F
Tritanopia (blue-blind)
#003F4A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2f70;
/* rgb */ color: rgb(31, 47, 112);
/* oklch */ color: oklch(33.4% 0.114 268.9);
Tailwind
colors: {
  custom: {
    50: '#66679a',
    500: '#1f2f70',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f70;
$custom-light: #66679a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f70",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 112
  },
  "hsl": {
    "h": 228.148,
    "s": 56.643,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3335,
    "c": 0.11409,
    "h": 268.9
  },
  "luminance": 0.03494
}

Semantic roles & 50–950 ramp

primary
#1F2F70
secondary
#A49247
accent
#C248E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #1F2F70

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

Preview Lab → · Contrast checker → · Palette generator →

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