#1F2C6F#1F2C6F

#1F2C6F is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.6% C 0.117 H 270.3°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#1F2C6F
RGBrgb(31, 44, 111)
HSLhsl(230, 56%, 28%)
HSVhsv(230, 72%, 44%)
CMYKcmyk(72.1%, 60.4%, 0%, 56.5%)
CIE-LABlab(20.98, 19.23, -40.52)
CIE-LCHlch(20.98, 44.85, 295.39°)
OKLaboklab(32.62% 0.0006 -0.1167)
OKLCHoklch(32.62% 0.117 270.3)
XYZxyz(4.3340, 3.2399, 15.4328)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C6F #6F621F
analogous
#1F546F #1F2C6F #3A1F6F
triadic
#1F2C6F #6F1F2C #2C6F1F
tetradic
#1F2C6F #6F1F54 #6F621F #1F6F3A
square
#1F2C6F #6F1F54 #6F621F #1F6F3A
split-complementary
#1F2C6F #6F3A1F #546F1F
monochromatic
#070918 #12193F #1F2C6F #2C3F9F #3F56C9

Accessibility & contrast

On white

12.74
#1F2C6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2C6F
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C6F#FFFFFF#000000##FFFFFF
##1F2C6F1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2c6f;
/* rgb */ color: rgb(31, 44, 111);
/* oklch */ color: oklch(32.6% 0.117 270.3);
Tailwind
colors: {
  custom: {
    50: '#666499',
    500: '#1f2c6f',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c6f;
$custom-light: #666499;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c6f",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 111
  },
  "hsl": {
    "h": 230.25,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32619,
    "c": 0.11672,
    "h": 270.3
  },
  "luminance": 0.0324
}

Semantic roles & 50–950 ramp

primary
#1F2C6F
secondary
#A39447
accent
#C748E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #1F2C6F

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

Preview Lab → · Contrast checker → · Palette generator →

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