#1F2B70#1F2B70

#1F2B70 is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.5% C 0.120 H 270.7°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#1F2B70
RGBrgb(31, 43, 112)
HSLhsl(231, 57%, 28%)
HSVhsv(231, 72%, 44%)
CMYKcmyk(72.3%, 61.6%, 0%, 56.1%)
CIE-LABlab(20.78, 20.34, -41.48)
CIE-LCHlch(20.78, 46.20, 296.11°)
OKLaboklab(32.5% 0.0015 -0.1196)
OKLCHoklch(32.5% 0.12 270.7)
XYZxyz(4.3526, 3.1885, 15.7121)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B70 #70641F
analogous
#1F5370 #1F2B70 #3B1F70
triadic
#1F2B70 #701F2B #2B701F
tetradic
#1F2B70 #701F53 #70641F #1F703B
square
#1F2B70 #701F53 #70641F #1F703B
split-complementary
#1F2B70 #703B1F #53701F
monochromatic
#070918 #121940 #1F2B70 #2C3DA0 #3F54CA

Accessibility & contrast

On white

12.82
#1F2B70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1F2B70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B70
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B70#FFFFFF#000000##FFFFFF
##1F2B701.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003672
Deuteranopia (green-blind)
#002E6F
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f2b70;
/* rgb */ color: rgb(31, 43, 112);
/* oklch */ color: oklch(32.5% 0.120 270.7);
Tailwind
colors: {
  custom: {
    50: '#66649a',
    500: '#1f2b70',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b70;
$custom-light: #66649a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b70",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 112
  },
  "hsl": {
    "h": 231.111,
    "s": 56.643,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32499,
    "c": 0.11958,
    "h": 270.7
  },
  "luminance": 0.03189
}

Semantic roles & 50–950 ramp

primary
#1F2B70
secondary
#A49647
accent
#C948E0
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #1F2B70

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

Preview Lab → · Contrast checker → · Palette generator →

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