#1F2C7C#1F2C7C

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

Color values

HEX#1F2C7C
RGBrgb(31, 44, 124)
HSLhsl(232, 60%, 30%)
HSVhsv(232, 75%, 49%)
CMYKcmyk(75%, 64.5%, 0%, 51.4%)
CIE-LABlab(22.11, 24.33, -46.98)
CIE-LCHlch(22.11, 52.91, 297.38°)
OKLaboklab(33.82% 0.0005 -0.1357)
OKLCHoklch(33.82% 0.136 270.2)
XYZxyz(5.1026, 3.5474, 19.4807)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C7C #7C6F1F
analogous
#1F5A7C #1F2C7C #401F7C
triadic
#1F2C7C #7C1F2C #2C7C1F
tetradic
#1F2C7C #7C1F5A #7C6F1F #1F7C40
square
#1F2C7C #7C1F5A #7C6F1F #1F7C40
split-complementary
#1F2C7C #7C401F #5A7C1F
monochromatic
#07091A #131B4B #1F2C7C #2B3DAD #4558D0

Accessibility & contrast

On white

12.28
#1F2C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1F2C7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C7C
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C7C#FFFFFF#000000##FFFFFF
##1F2C7C1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2c7c;
/* rgb */ color: rgb(31, 44, 124);
/* oklch */ color: oklch(33.8% 0.136 270.2);
Tailwind
colors: {
  custom: {
    50: '#6965a3',
    500: '#1f2c7c',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c7c;
$custom-light: #6965a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c7c",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 124
  },
  "hsl": {
    "h": 231.613,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33815,
    "c": 0.13569,
    "h": 270.2
  },
  "luminance": 0.03548
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F2C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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