#1F2C9A#1F2C9A

#1F2C9A is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.8% C 0.176 H 269.4°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#1F2C9A
RGBrgb(31, 44, 154)
HSLhsl(234, 66%, 36%)
HSVhsv(234, 80%, 60%)
CMYKcmyk(79.9%, 71.4%, 0%, 39.6%)
CIE-LABlab(25.03, 35.65, -60.88)
CIE-LCHlch(25.03, 70.55, 300.35°)
OKLaboklab(36.83% -0.0018 -0.1763)
OKLCHoklch(36.83% 0.176 269.4)
XYZxyz(7.2965, 4.4249, 31.0351)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C9A #9A8D1F
analogous
#1F6A9A #1F2C9A #501F9A
triadic
#1F2C9A #9A1F2C #2C9A1F
tetradic
#1F2C9A #9A1F6A #9A8D1F #1F9A50
square
#1F2C9A #9A1F6A #9A8D1F #1F9A50
split-complementary
#1F2C9A #9A501F #6A9A1F
monochromatic
#0A0F34 #151D67 #1F2C9A #293BCD #5665DD

Accessibility & contrast

On white

11.14
#1F2C9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#1F2C9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C9A
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C9A#FFFFFF#000000##FFFFFF
##1F2C9A1.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419D
Deuteranopia (green-blind)
#003598
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f2c9a;
/* rgb */ color: rgb(31, 44, 154);
/* oklch */ color: oklch(36.8% 0.176 269.4);
Tailwind
colors: {
  custom: {
    50: '#7165b9',
    500: '#1f2c9a',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c9a;
$custom-light: #7165b9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c9a",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 154
  },
  "hsl": {
    "h": 233.659,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36828,
    "c": 0.17634,
    "h": 269.4
  },
  "luminance": 0.04426
}

Semantic roles & 50–950 ramp

primary
#1F2C9A
secondary
#C1B554
accent
#D73EE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #1F2C9A

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

Preview Lab → · Contrast checker → · Palette generator →

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