#1F2C8E#1F2C8E

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

Color values

HEX#1F2C8E
RGBrgb(31, 44, 142)
HSLhsl(233, 64%, 34%)
HSVhsv(233, 78%, 56%)
CMYKcmyk(78.2%, 69%, 0%, 44.3%)
CIE-LABlab(23.82, 31.21, -55.48)
CIE-LCHlch(23.82, 63.65, 299.36°)
OKLaboklab(35.59% -0.0006 -0.1606)
OKLCHoklch(35.59% 0.161 269.8)
XYZxyz(6.3466, 4.0450, 26.0322)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C8E #8E811F
analogous
#1F648E #1F2C8E #4A1F8E
triadic
#1F2C8E #8E1F2C #2C8E1F
tetradic
#1F2C8E #8E1F64 #8E811F #1F8E4A
square
#1F2C8E #8E1F64 #8E811F #1F8E4A
split-complementary
#1F2C8E #8E4A1F #648E1F
monochromatic
#090D2A #141C5C #1F2C8E #2A3CC0 #4F5FD9

Accessibility & contrast

On white

11.61
#1F2C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#1F2C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C8E
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C8E#FFFFFF#000000##FFFFFF
##1F2C8E1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f2c8e;
/* rgb */ color: rgb(31, 44, 142);
/* oklch */ color: oklch(35.6% 0.161 269.8);
Tailwind
colors: {
  custom: {
    50: '#6e65b0',
    500: '#1f2c8e',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c8e;
$custom-light: #6e65b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c8e",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 232.973,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35586,
    "c": 0.16056,
    "h": 269.8
  },
  "luminance": 0.04046
}

Semantic roles & 50–950 ramp

primary
#1F2C8E
secondary
#BBAF4D
accent
#D441E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80

Preview Lab

Preview with #1F2C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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