#1F2C7A#1F2C7A

#1F2C7A is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.133 H 270.3°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#1F2C7A
RGBrgb(31, 44, 122)
HSLhsl(231, 59%, 30%)
HSVhsv(231, 75%, 48%)
CMYKcmyk(74.6%, 63.9%, 0%, 52.2%)
CIE-LABlab(21.93, 23.55, -46.01)
CIE-LCHlch(21.93, 51.68, 297.11°)
OKLaboklab(33.63% 0.0006 -0.1328)
OKLCHoklch(33.63% 0.133 270.3)
XYZxyz(4.9774, 3.4973, 18.8213)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C7A #7A6D1F
analogous
#1F597A #1F2C7A #401F7A
triadic
#1F2C7A #7A1F2C #2C7A1F
tetradic
#1F2C7A #7A1F59 #7A6D1F #1F7A40
square
#1F2C7A #7A1F59 #7A6D1F #1F7A40
split-complementary
#1F2C7A #7A401F #597A1F
monochromatic
#060918 #131A49 #1F2C7A #2B3EAB #4458CF

Accessibility & contrast

On white

12.36
#1F2C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2C7A
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C7A#FFFFFF#000000##FFFFFF
##1F2C7A1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2c7a;
/* rgb */ color: rgb(31, 44, 122);
/* oklch */ color: oklch(33.6% 0.133 270.3);
Tailwind
colors: {
  custom: {
    50: '#6965a1',
    500: '#1f2c7a',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c7a;
$custom-light: #6965a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c7a",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 122
  },
  "hsl": {
    "h": 231.429,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.33626,
    "c": 0.13283,
    "h": 270.3
  },
  "luminance": 0.03498
}

Semantic roles & 50–950 ramp

primary
#1F2C7A
secondary
#AD9F47
accent
#CC45E3
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1F2C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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