#1F2F74#1F2F74

#1F2F74 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.7% C 0.120 H 269.1°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#1F2F74
RGBrgb(31, 47, 116)
HSLhsl(229, 58%, 29%)
HSVhsv(229, 73%, 45%)
CMYKcmyk(73.3%, 59.5%, 0%, 54.5%)
CIE-LABlab(22.25, 19.09, -41.67)
CIE-LCHlch(22.25, 45.83, 294.61°)
OKLaboklab(33.7% -0.0019 -0.1201)
OKLCHoklch(33.7% 0.12 269.1)
XYZxyz(4.7329, 3.5848, 16.9621)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F74 #74641F
analogous
#1F5A74 #1F2F74 #3A1F74
triadic
#1F2F74 #741F2F #2F741F
tetradic
#1F2F74 #741F5A #74641F #1F743A
square
#1F2F74 #741F5A #74641F #1F743A
split-complementary
#1F2F74 #743A1F #5A741F
monochromatic
#060A18 #121B44 #1F2F74 #2C43A4 #415BCC

Accessibility & contrast

On white

12.23
#1F2F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1F2F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F74
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F74#FFFFFF#000000##FFFFFF
##1F2F741.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003976
Deuteranopia (green-blind)
#003173
Tritanopia (blue-blind)
#00404C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2f74;
/* rgb */ color: rgb(31, 47, 116);
/* oklch */ color: oklch(33.7% 0.120 269.1);
Tailwind
colors: {
  custom: {
    50: '#67679d',
    500: '#1f2f74',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f74;
$custom-light: #67679d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f74",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 116
  },
  "hsl": {
    "h": 228.706,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33698,
    "c": 0.12008,
    "h": 269.1
  },
  "luminance": 0.03585
}

Semantic roles & 50–950 ramp

primary
#1F2F74
secondary
#A89647
accent
#C447E1
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #1F2F74

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

Preview Lab → · Contrast checker → · Palette generator →

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