#1F2C9F#1F2C9F

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

Color values

HEX#1F2C9F
RGBrgb(31, 44, 159)
HSLhsl(234, 67%, 37%)
HSVhsv(234, 81%, 62%)
CMYKcmyk(80.5%, 72.3%, 0%, 37.6%)
CIE-LABlab(25.55, 37.46, -63.08)
CIE-LCHlch(25.55, 73.37, 300.71°)
OKLaboklab(37.36% -0.0024 -0.1827)
OKLCHoklch(37.36% 0.183 269.3)
XYZxyz(7.7216, 4.5950, 33.2741)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C9F #9F921F
analogous
#1F6C9F #1F2C9F #521F9F
triadic
#1F2C9F #9F1F2C #2C9F1F
tetradic
#1F2C9F #9F1F6C #9F921F #1F9F52
square
#1F2C9F #9F1F6C #9F921F #1F9F52
split-complementary
#1F2C9F #9F521F #6C9F1F
monochromatic
#0B1039 #151E6C #1F2C9F #293AD2 #5A67DF

Accessibility & contrast

On white

10.94
#1F2C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#1F2C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C9F
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C9F#FFFFFF#000000##FFFFFF
##1F2C9F1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#00369D
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f2c9f;
/* rgb */ color: rgb(31, 44, 159);
/* oklch */ color: oklch(37.4% 0.183 269.3);
Tailwind
colors: {
  custom: {
    50: '#7366bd',
    500: '#1f2c9f',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c9f;
$custom-light: #7366bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c9f",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 159
  },
  "hsl": {
    "h": 233.906,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37357,
    "c": 0.18275,
    "h": 269.3
  },
  "luminance": 0.04596
}

Semantic roles & 50–950 ramp

primary
#1F2C9F
secondary
#C3B857
accent
#D93EEA
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #1F2C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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