#1F2C8A#1F2C8A

#1F2C8A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.155 H 269.9°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#1F2C8A
RGBrgb(31, 44, 138)
HSLhsl(233, 63%, 33%)
HSVhsv(233, 78%, 54%)
CMYKcmyk(77.5%, 68.1%, 0%, 45.9%)
CIE-LABlab(23.43, 29.70, -53.63)
CIE-LCHlch(23.43, 61.31, 298.98°)
OKLaboklab(35.18% -0.0002 -0.1552)
OKLCHoklch(35.18% 0.155 269.9)
XYZxyz(6.0516, 3.9270, 24.4789)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C8A #8A7D1F
analogous
#1F618A #1F2C8A #471F8A
triadic
#1F2C8A #8A1F2C #2C8A1F
tetradic
#1F2C8A #8A1F61 #8A7D1F #1F8A47
square
#1F2C8A #8A1F61 #8A7D1F #1F8A47
split-complementary
#1F2C8A #8A471F #618A1F
monochromatic
#090C26 #141C58 #1F2C8A #2A3CBC #4C5DD7

Accessibility & contrast

On white

11.76
#1F2C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1F2C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C8A
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C8A#FFFFFF#000000##FFFFFF
##1F2C8A1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2c8a;
/* rgb */ color: rgb(31, 44, 138);
/* oklch */ color: oklch(35.2% 0.155 269.9);
Tailwind
colors: {
  custom: {
    50: '#6d65ad',
    500: '#1f2c8a',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c8a;
$custom-light: #6d65ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c8a",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 232.71,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35183,
    "c": 0.15516,
    "h": 269.9
  },
  "luminance": 0.03928
}

Semantic roles & 50–950 ramp

primary
#1F2C8A
secondary
#BAAC4B
accent
#D241E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #1F2C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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