#1F279D#1F279D

#1F279D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.4% C 0.185 H 270.0°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#1F279D
RGBrgb(31, 39, 157)
HSLhsl(236, 67%, 37%)
HSVhsv(236, 80%, 62%)
CMYKcmyk(80.3%, 75.2%, 0%, 38.4%)
CIE-LABlab(24.24, 39.79, -64.01)
CIE-LCHlch(24.24, 75.37, 301.86°)
OKLaboklab(36.36% -0.0001 -0.1854)
OKLCHoklch(36.36% 0.185 270)
XYZxyz(7.3743, 4.1758, 32.3091)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F279D #9D951F
analogous
#1F669D #1F279D #561F9D
triadic
#1F279D #9D1F27 #279D1F
tetradic
#1F279D #9D1F66 #9D951F #1F9D56
square
#1F279D #9D1F66 #9D951F #1F9D56
split-complementary
#1F279D #9D561F #669D1F
monochromatic
#0B0E37 #151A6A #1F279D #2934D0 #5861DE

Accessibility & contrast

On white

11.44
#1F279D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#1F279D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F279D
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F279D#FFFFFF#000000##FFFFFF
##1F279D1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A0
Deuteranopia (green-blind)
#00339B
Tritanopia (blue-blind)
#004A60
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f279d;
/* rgb */ color: rgb(31, 39, 157);
/* oklch */ color: oklch(36.4% 0.185 270.0);
Tailwind
colors: {
  custom: {
    50: '#7262bb',
    500: '#1f279d',
    950: '#000000',
  },
}
SCSS
$custom: #1f279d;
$custom-light: #7262bb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f279d",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 236.19,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.3636,
    "c": 0.18541,
    "h": 270
  },
  "luminance": 0.04177
}

Semantic roles & 50–950 ramp

primary
#1F279D
secondary
#C2BB56
accent
#DF3EEA
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #1F279D

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

Preview Lab → · Contrast checker → · Palette generator →

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