#1F2C9E#1F2C9E

#1F2C9E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.3% C 0.181 H 269.3°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#1F2C9E
RGBrgb(31, 44, 158)
HSLhsl(234, 67%, 37%)
HSVhsv(234, 80%, 62%)
CMYKcmyk(80.4%, 72.2%, 0%, 38%)
CIE-LABlab(25.44, 37.10, -62.64)
CIE-LCHlch(25.44, 72.81, 300.64°)
OKLaboklab(37.25% -0.0022 -0.1814)
OKLCHoklch(37.25% 0.181 269.3)
XYZxyz(7.6352, 4.5604, 32.8190)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C9E #9E911F
analogous
#1F6C9E #1F2C9E #511F9E
triadic
#1F2C9E #9E1F2C #2C9E1F
tetradic
#1F2C9E #9E1F6C #9E911F #1F9E51
square
#1F2C9E #9E1F6C #9E911F #1F9E51
split-complementary
#1F2C9E #9E511F #6C9E1F
monochromatic
#0B1038 #151E6B #1F2C9E #293AD1 #5967DE

Accessibility & contrast

On white

10.98
#1F2C9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#1F2C9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C9E
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C9E#FFFFFF#000000##FFFFFF
##1F2C9E1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#00369C
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f2c9e;
/* rgb */ color: rgb(31, 44, 158);
/* oklch */ color: oklch(37.3% 0.181 269.3);
Tailwind
colors: {
  custom: {
    50: '#7266bc',
    500: '#1f2c9e',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c9e;
$custom-light: #7266bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c9e",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 158
  },
  "hsl": {
    "h": 233.858,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37251,
    "c": 0.18146,
    "h": 269.3
  },
  "luminance": 0.04561
}

Semantic roles & 50–950 ramp

primary
#1F2C9E
secondary
#C2B756
accent
#D83EEA
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #1F2C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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