#1F2B74#1F2B74

#1F2B74 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.9% C 0.125 H 270.7°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#1F2B74
RGBrgb(31, 43, 116)
HSLhsl(232, 58%, 29%)
HSVhsv(232, 73%, 45%)
CMYKcmyk(73.3%, 62.9%, 0%, 54.5%)
CIE-LABlab(21.13, 21.91, -43.49)
CIE-LCHlch(21.13, 48.69, 296.74°)
OKLaboklab(32.87% 0.0015 -0.1255)
OKLCHoklch(32.87% 0.125 270.7)
XYZxyz(4.5803, 3.2796, 16.9112)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B74 #74681F
analogous
#1F5674 #1F2B74 #3E1F74
triadic
#1F2B74 #741F2B #2B741F
tetradic
#1F2B74 #741F56 #74681F #1F743E
square
#1F2B74 #741F56 #74681F #1F743E
split-complementary
#1F2B74 #743E1F #56741F
monochromatic
#060918 #121944 #1F2B74 #2C3DA4 #4155CC

Accessibility & contrast

On white

12.68
#1F2B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1F2B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B74
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B74#FFFFFF#000000##FFFFFF
##1F2B741.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003776
Deuteranopia (green-blind)
#002F73
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2b74;
/* rgb */ color: rgb(31, 43, 116);
/* oklch */ color: oklch(32.9% 0.125 270.7);
Tailwind
colors: {
  custom: {
    50: '#67649d',
    500: '#1f2b74',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b74;
$custom-light: #67649d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b74",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 116
  },
  "hsl": {
    "h": 231.529,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32865,
    "c": 0.12547,
    "h": 270.7
  },
  "luminance": 0.0328
}

Semantic roles & 50–950 ramp

primary
#1F2B74
secondary
#A89A47
accent
#CB47E1
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1F2B74

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

Preview Lab → · Contrast checker → · Palette generator →

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