#1F2C7B#1F2C7B

#1F2C7B is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.134 H 270.2°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#1F2C7B
RGBrgb(31, 44, 123)
HSLhsl(232, 60%, 30%)
HSVhsv(232, 75%, 48%)
CMYKcmyk(74.8%, 64.2%, 0%, 51.8%)
CIE-LABlab(22.02, 23.94, -46.49)
CIE-LCHlch(22.02, 52.30, 297.25°)
OKLaboklab(33.72% 0.0006 -0.1343)
OKLCHoklch(33.72% 0.134 270.2)
XYZxyz(5.0397, 3.5222, 19.1493)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C7B #7B6E1F
analogous
#1F5A7B #1F2C7B #401F7B
triadic
#1F2C7B #7B1F2C #2C7B1F
tetradic
#1F2C7B #7B1F5A #7B6E1F #1F7B40
square
#1F2C7B #7B1F5A #7B6E1F #1F7B40
split-complementary
#1F2C7B #7B401F #5A7B1F
monochromatic
#060919 #131B4A #1F2C7B #2B3DAC #4458D0

Accessibility & contrast

On white

12.32
#1F2C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1F2C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C7B
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C7B#FFFFFF#000000##FFFFFF
##1F2C7B1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2c7b;
/* rgb */ color: rgb(31, 44, 123);
/* oklch */ color: oklch(33.7% 0.134 270.2);
Tailwind
colors: {
  custom: {
    50: '#6965a2',
    500: '#1f2c7b',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c7b;
$custom-light: #6965a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c7b",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 123
  },
  "hsl": {
    "h": 231.522,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3372,
    "c": 0.13427,
    "h": 270.2
  },
  "luminance": 0.03523
}

Semantic roles & 50–950 ramp

primary
#1F2C7B
secondary
#AEA048
accent
#CD45E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1F2C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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