#1F2B7C#1F2B7C

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

Color values

HEX#1F2B7C
RGBrgb(31, 43, 124)
HSLhsl(232, 60%, 30%)
HSVhsv(232, 75%, 49%)
CMYKcmyk(75%, 65.3%, 0%, 51.4%)
CIE-LABlab(21.85, 25.02, -47.42)
CIE-LCHlch(21.85, 53.61, 297.82°)
OKLaboklab(33.62% 0.0013 -0.137)
OKLCHoklch(33.62% 0.137 270.5)
XYZxyz(5.0658, 3.4738, 19.4684)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B7C #7C701F
analogous
#1F597C #1F2B7C #411F7C
triadic
#1F2B7C #7C1F2B #2B7C1F
tetradic
#1F2B7C #7C1F59 #7C701F #1F7C41
square
#1F2B7C #7C1F59 #7C701F #1F7C41
split-complementary
#1F2B7C #7C411F #597C1F
monochromatic
#07091A #131A4B #1F2B7C #2B3CAD #4557D0

Accessibility & contrast

On white

12.39
#1F2B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1F2B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B7C
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B7C#FFFFFF#000000##FFFFFF
##1F2B7C1.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2b7c;
/* rgb */ color: rgb(31, 43, 124);
/* oklch */ color: oklch(33.6% 0.137 270.5);
Tailwind
colors: {
  custom: {
    50: '#6964a3',
    500: '#1f2b7c',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b7c;
$custom-light: #6964a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b7c",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 124
  },
  "hsl": {
    "h": 232.258,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33619,
    "c": 0.13699,
    "h": 270.5
  },
  "luminance": 0.03474
}

Semantic roles & 50–950 ramp

primary
#1F2B7C
secondary
#AFA248
accent
#CF45E3
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1F2B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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