#1F2C8C#1F2C8C

#1F2C8C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.158 H 269.9°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#1F2C8C
RGBrgb(31, 44, 140)
HSLhsl(233, 64%, 34%)
HSVhsv(233, 78%, 55%)
CMYKcmyk(77.9%, 68.6%, 0%, 45.1%)
CIE-LABlab(23.62, 30.46, -54.56)
CIE-LCHlch(23.62, 62.48, 299.18°)
OKLaboklab(35.38% -0.0004 -0.1579)
OKLCHoklch(35.38% 0.158 269.9)
XYZxyz(6.1978, 3.9854, 25.2485)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C8C #8C7F1F
analogous
#1F628C #1F2C8C #481F8C
triadic
#1F2C8C #8C1F2C #2C8C1F
tetradic
#1F2C8C #8C1F62 #8C7F1F #1F8C48
square
#1F2C8C #8C1F62 #8C7F1F #1F8C48
split-complementary
#1F2C8C #8C481F #628C1F
monochromatic
#090D28 #141C5A #1F2C8C #2A3CBE #4E5ED8

Accessibility & contrast

On white

11.68
#1F2C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#1F2C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C8C
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C8C#FFFFFF#000000##FFFFFF
##1F2C8C1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#00338A
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2c8c;
/* rgb */ color: rgb(31, 44, 140);
/* oklch */ color: oklch(35.4% 0.158 269.9);
Tailwind
colors: {
  custom: {
    50: '#6d65af',
    500: '#1f2c8c',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c8c;
$custom-light: #6d65af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c8c",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 140
  },
  "hsl": {
    "h": 232.844,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35384,
    "c": 0.15787,
    "h": 269.9
  },
  "luminance": 0.03986
}

Semantic roles & 50–950 ramp

primary
#1F2C8C
secondary
#BBAD4C
accent
#D341E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #1F2C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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