#1F279F#1F279F

#1F279F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.6% C 0.188 H 269.9°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#1F279F
RGBrgb(31, 39, 159)
HSLhsl(236, 67%, 37%)
HSVhsv(236, 81%, 62%)
CMYKcmyk(80.5%, 75.5%, 0%, 37.6%)
CIE-LABlab(24.46, 40.49, -64.87)
CIE-LCHlch(24.46, 76.47, 301.97°)
OKLaboklab(36.58% -0.0004 -0.1879)
OKLCHoklch(36.58% 0.188 269.9)
XYZxyz(7.5465, 4.2447, 33.2157)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F279F #9F971F
analogous
#1F679F #1F279F #571F9F
triadic
#1F279F #9F1F27 #279F1F
tetradic
#1F279F #9F1F67 #9F971F #1F9F57
square
#1F279F #9F1F67 #9F971F #1F9F57
split-complementary
#1F279F #9F571F #679F1F
monochromatic
#0B0E39 #151A6C #1F279F #2934D2 #5A62DF

Accessibility & contrast

On white

11.36
#1F279F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#1F279F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F279F
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F279F#FFFFFF#000000##FFFFFF
##1F279F1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A2
Deuteranopia (green-blind)
#00349D
Tritanopia (blue-blind)
#004A61
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f279f;
/* rgb */ color: rgb(31, 39, 159);
/* oklch */ color: oklch(36.6% 0.188 269.9);
Tailwind
colors: {
  custom: {
    50: '#7362bd',
    500: '#1f279f',
    950: '#000000',
  },
}
SCSS
$custom: #1f279f;
$custom-light: #7362bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f279f",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 159
  },
  "hsl": {
    "h": 236.25,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36582,
    "c": 0.1879,
    "h": 269.9
  },
  "luminance": 0.04246
}

Semantic roles & 50–950 ramp

primary
#1F279F
secondary
#C3BC57
accent
#DF3EEA
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #1F279F

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

Preview Lab → · Contrast checker → · Palette generator →

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