#1F2C70#1F2C70

#1F2C70 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.7% C 0.118 H 270.3°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#1F2C70
RGBrgb(31, 44, 112)
HSLhsl(230, 57%, 28%)
HSVhsv(230, 72%, 44%)
CMYKcmyk(72.3%, 60.7%, 0%, 56.1%)
CIE-LABlab(21.06, 19.63, -41.03)
CIE-LCHlch(21.06, 45.48, 295.57°)
OKLaboklab(32.71% 0.0006 -0.1182)
OKLCHoklch(32.71% 0.118 270.3)
XYZxyz(4.3894, 3.2621, 15.7244)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C70 #70631F
analogous
#1F5470 #1F2C70 #3A1F70
triadic
#1F2C70 #701F2C #2C701F
tetradic
#1F2C70 #701F54 #70631F #1F703A
square
#1F2C70 #701F54 #70631F #1F703A
split-complementary
#1F2C70 #703A1F #54701F
monochromatic
#070918 #121940 #1F2C70 #2C3FA0 #3F56CA

Accessibility & contrast

On white

12.71
#1F2C70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1F2C70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C70
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C70#FFFFFF#000000##FFFFFF
##1F2C701.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003672
Deuteranopia (green-blind)
#002F6F
Tritanopia (blue-blind)
#003D49
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2c70;
/* rgb */ color: rgb(31, 44, 112);
/* oklch */ color: oklch(32.7% 0.118 270.3);
Tailwind
colors: {
  custom: {
    50: '#66649a',
    500: '#1f2c70',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c70;
$custom-light: #66649a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c70",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 112
  },
  "hsl": {
    "h": 230.37,
    "s": 56.643,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32708,
    "c": 0.11821,
    "h": 270.3
  },
  "luminance": 0.03263
}

Semantic roles & 50–950 ramp

primary
#1F2C70
secondary
#A49547
accent
#C848E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #1F2C70

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

Preview Lab → · Contrast checker → · Palette generator →

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