#1F3076#1F3076

#1F3076 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.1% C 0.122 H 268.7°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#1F3076
RGBrgb(31, 48, 118)
HSLhsl(228, 58%, 29%)
HSVhsv(228, 74%, 46%)
CMYKcmyk(73.7%, 59.3%, 0%, 53.7%)
CIE-LABlab(22.70, 19.17, -42.22)
CIE-LCHlch(22.70, 46.37, 294.43°)
OKLaboklab(34.09% -0.0027 -0.1216)
OKLCHoklch(34.09% 0.122 268.7)
XYZxyz(4.8909, 3.7127, 17.5949)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3076 #76651F
analogous
#1F5C76 #1F3076 #3A1F76
triadic
#1F3076 #761F30 #30761F
tetradic
#1F3076 #761F5C #76651F #1F763A
square
#1F3076 #761F5C #76651F #1F763A
split-complementary
#1F3076 #763A1F #5C761F
monochromatic
#060A18 #121C46 #1F3076 #2C44A6 #425DCD

Accessibility & contrast

On white

12.05
#1F3076 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1F3076 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3076
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3076#FFFFFF#000000##FFFFFF
##1F30761.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A78
Deuteranopia (green-blind)
#003275
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f3076;
/* rgb */ color: rgb(31, 48, 118);
/* oklch */ color: oklch(34.1% 0.122 268.7);
Tailwind
colors: {
  custom: {
    50: '#67689e',
    500: '#1f3076',
    950: '#000000',
  },
}
SCSS
$custom: #1f3076;
$custom-light: #67689e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3076",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 118
  },
  "hsl": {
    "h": 228.276,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34086,
    "c": 0.12168,
    "h": 268.7
  },
  "luminance": 0.03713
}

Semantic roles & 50–950 ramp

primary
#1F3076
secondary
#AA9647
accent
#C346E2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #1F3076

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

Preview Lab → · Contrast checker → · Palette generator →

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