#1F2C8D#1F2C8D

#1F2C8D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.159 H 269.8°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#1F2C8D
RGBrgb(31, 44, 141)
HSLhsl(233, 64%, 34%)
HSVhsv(233, 78%, 55%)
CMYKcmyk(78%, 68.8%, 0%, 44.7%)
CIE-LABlab(23.72, 30.84, -55.02)
CIE-LCHlch(23.72, 63.07, 299.27°)
OKLaboklab(35.49% -0.0005 -0.1592)
OKLCHoklch(35.49% 0.159 269.8)
XYZxyz(6.2718, 4.0151, 25.6386)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C8D #8D801F
analogous
#1F638D #1F2C8D #491F8D
triadic
#1F2C8D #8D1F2C #2C8D1F
tetradic
#1F2C8D #8D1F63 #8D801F #1F8D49
square
#1F2C8D #8D1F63 #8D801F #1F8D49
split-complementary
#1F2C8D #8D491F #638D1F
monochromatic
#090D29 #141C5B #1F2C8D #2A3CBF #4E5FD8

Accessibility & contrast

On white

11.65
#1F2C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2C8D
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C8D#FFFFFF#000000##FFFFFF
##1F2C8D1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2c8d;
/* rgb */ color: rgb(31, 44, 141);
/* oklch */ color: oklch(35.5% 0.159 269.8);
Tailwind
colors: {
  custom: {
    50: '#6e65af',
    500: '#1f2c8d',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c8d;
$custom-light: #6e65af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c8d",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 232.909,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35485,
    "c": 0.15922,
    "h": 269.8
  },
  "luminance": 0.04016
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F2C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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