#1F2C8F#1F2C8F

#1F2C8F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.7% C 0.162 H 269.8°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#1F2C8F
RGBrgb(31, 44, 143)
HSLhsl(233, 64%, 34%)
HSVhsv(233, 78%, 56%)
CMYKcmyk(78.3%, 69.2%, 0%, 43.9%)
CIE-LABlab(23.92, 31.59, -55.93)
CIE-LCHlch(23.92, 64.24, 299.45°)
OKLaboklab(35.69% -0.0007 -0.1619)
OKLCHoklch(35.69% 0.162 269.8)
XYZxyz(6.4220, 4.0751, 26.4294)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C8F #8F821F
analogous
#1F648F #1F2C8F #4A1F8F
triadic
#1F2C8F #8F1F2C #2C8F1F
tetradic
#1F2C8F #8F1F64 #8F821F #1F8F4A
square
#1F2C8F #8F1F64 #8F821F #1F8F4A
split-complementary
#1F2C8F #8F4A1F #648F1F
monochromatic
#090D2A #141D5D #1F2C8F #2A3BC1 #4F5FD9

Accessibility & contrast

On white

11.57
#1F2C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#1F2C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C8F
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C8F#FFFFFF#000000##FFFFFF
##1F2C8F1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f2c8f;
/* rgb */ color: rgb(31, 44, 143);
/* oklch */ color: oklch(35.7% 0.162 269.8);
Tailwind
colors: {
  custom: {
    50: '#6e65b1',
    500: '#1f2c8f',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c8f;
$custom-light: #6e65b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c8f",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 143
  },
  "hsl": {
    "h": 233.036,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35688,
    "c": 0.1619,
    "h": 269.8
  },
  "luminance": 0.04076
}

Semantic roles & 50–950 ramp

primary
#1F2C8F
secondary
#BCAF4E
accent
#D440E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80

Preview Lab

Preview with #1F2C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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