#1F2F72#1F2F72

#1F2F72 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.5% C 0.117 H 269.0°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#1F2F72
RGBrgb(31, 47, 114)
HSLhsl(228, 57%, 28%)
HSVhsv(228, 73%, 45%)
CMYKcmyk(72.8%, 58.8%, 0%, 55.3%)
CIE-LABlab(22.08, 18.29, -40.65)
CIE-LCHlch(22.08, 44.58, 294.22°)
OKLaboklab(33.52% -0.002 -0.1171)
OKLCHoklch(33.52% 0.117 269)
XYZxyz(4.6178, 3.5388, 16.3560)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F72 #72621F
analogous
#1F5872 #1F2F72 #381F72
triadic
#1F2F72 #721F2F #2F721F
tetradic
#1F2F72 #721F58 #72621F #1F7238
square
#1F2F72 #721F58 #72621F #1F7238
split-complementary
#1F2F72 #72381F #58721F
monochromatic
#070A18 #121B42 #1F2F72 #2C43A2 #405BCB

Accessibility & contrast

On white

12.30
#1F2F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1F2F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F72
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F72#FFFFFF#000000##FFFFFF
##1F2F721.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003974
Deuteranopia (green-blind)
#003171
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2f72;
/* rgb */ color: rgb(31, 47, 114);
/* oklch */ color: oklch(33.5% 0.117 269.0);
Tailwind
colors: {
  custom: {
    50: '#67679b',
    500: '#1f2f72',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f72;
$custom-light: #67679b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f72",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 114
  },
  "hsl": {
    "h": 228.434,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33523,
    "c": 0.11709,
    "h": 269
  },
  "luminance": 0.03539
}

Semantic roles & 50–950 ramp

primary
#1F2F72
secondary
#A69447
accent
#C347E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #1F2F72

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

Preview Lab → · Contrast checker → · Palette generator →

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