#1F2D70#1F2D70

#1F2D70 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.9% C 0.117 H 269.9°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#1F2D70
RGBrgb(31, 45, 112)
HSLhsl(230, 57%, 28%)
HSVhsv(230, 72%, 44%)
CMYKcmyk(72.3%, 59.8%, 0%, 56.1%)
CIE-LABlab(21.35, 18.92, -40.57)
CIE-LCHlch(21.35, 44.76, 295.00°)
OKLaboklab(32.92% -0.0003 -0.1168)
OKLCHoklch(32.92% 0.117 269.9)
XYZxyz(4.4271, 3.3375, 15.7370)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D70 #70621F
analogous
#1F5570 #1F2D70 #3A1F70
triadic
#1F2D70 #701F2D #2D701F
tetradic
#1F2D70 #701F55 #70621F #1F703A
square
#1F2D70 #701F55 #70621F #1F703A
split-complementary
#1F2D70 #703A1F #55701F
monochromatic
#070A18 #121A40 #1F2D70 #2C40A0 #3F57CA

Accessibility & contrast

On white

12.59
#1F2D70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1F2D70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D70
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D70#FFFFFF#000000##FFFFFF
##1F2D701.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003772
Deuteranopia (green-blind)
#00306F
Tritanopia (blue-blind)
#003D49
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2d70;
/* rgb */ color: rgb(31, 45, 112);
/* oklch */ color: oklch(32.9% 0.117 269.9);
Tailwind
colors: {
  custom: {
    50: '#66659a',
    500: '#1f2d70',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d70;
$custom-light: #66659a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d70",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 112
  },
  "hsl": {
    "h": 229.63,
    "s": 56.643,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3292,
    "c": 0.11684,
    "h": 269.9
  },
  "luminance": 0.03338
}

Semantic roles & 50–950 ramp

primary
#1F2D70
secondary
#A49447
accent
#C648E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #1F2D70

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

Preview Lab → · Contrast checker → · Palette generator →

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