#1F2C74#1F2C74

#1F2C74 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.1% C 0.124 H 270.3°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#1F2C74
RGBrgb(31, 44, 116)
HSLhsl(231, 58%, 29%)
HSVhsv(231, 73%, 45%)
CMYKcmyk(73.3%, 62.1%, 0%, 54.5%)
CIE-LABlab(21.41, 21.20, -43.04)
CIE-LCHlch(21.41, 47.98, 296.23°)
OKLaboklab(33.07% 0.0007 -0.1241)
OKLCHoklch(33.07% 0.124 270.3)
XYZxyz(4.6171, 3.3532, 16.9235)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C74 #74671F
analogous
#1F5774 #1F2C74 #3D1F74
triadic
#1F2C74 #741F2C #2C741F
tetradic
#1F2C74 #741F57 #74671F #1F743D
square
#1F2C74 #741F57 #74671F #1F743D
split-complementary
#1F2C74 #743D1F #57741F
monochromatic
#060918 #121A44 #1F2C74 #2C3EA4 #4156CC

Accessibility & contrast

On white

12.57
#1F2C74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2C74
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C74#FFFFFF#000000##FFFFFF
##1F2C741.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003776
Deuteranopia (green-blind)
#003073
Tritanopia (blue-blind)
#003E4B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2c74;
/* rgb */ color: rgb(31, 44, 116);
/* oklch */ color: oklch(33.1% 0.124 270.3);
Tailwind
colors: {
  custom: {
    50: '#67649d',
    500: '#1f2c74',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c74;
$custom-light: #67649d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c74",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 116
  },
  "hsl": {
    "h": 230.824,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3307,
    "c": 0.12412,
    "h": 270.3
  },
  "luminance": 0.03354
}

Semantic roles & 50–950 ramp

primary
#1F2C74
secondary
#A89947
accent
#C947E1
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #1F2C74

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

Preview Lab → · Contrast checker → · Palette generator →

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