#1F279C#1F279C

#1F279C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.3% C 0.184 H 270.0°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#1F279C
RGBrgb(31, 39, 156)
HSLhsl(236, 67%, 37%)
HSVhsv(236, 80%, 61%)
CMYKcmyk(80.1%, 75%, 0%, 38.8%)
CIE-LABlab(24.13, 39.44, -63.58)
CIE-LCHlch(24.13, 74.82, 301.81°)
OKLaboklab(36.25% 0.0001 -0.1842)
OKLCHoklch(36.25% 0.184 270)
XYZxyz(7.2893, 4.1418, 31.8613)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F279C #9C941F
analogous
#1F669C #1F279C #561F9C
triadic
#1F279C #9C1F27 #279C1F
tetradic
#1F279C #9C1F66 #9C941F #1F9C56
square
#1F279C #9C1F66 #9C941F #1F9C56
split-complementary
#1F279C #9C561F #669C1F
monochromatic
#0B0D36 #151A69 #1F279C #2934CF #5860DE

Accessibility & contrast

On white

11.48
#1F279C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#1F279C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F279C
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F279C#FFFFFF#000000##FFFFFF
##1F279C1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409F
Deuteranopia (green-blind)
#00339A
Tritanopia (blue-blind)
#00495F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f279c;
/* rgb */ color: rgb(31, 39, 156);
/* oklch */ color: oklch(36.3% 0.184 270.0);
Tailwind
colors: {
  custom: {
    50: '#7262ba',
    500: '#1f279c',
    950: '#000000',
  },
}
SCSS
$custom: #1f279c;
$custom-light: #7262ba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f279c",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 156
  },
  "hsl": {
    "h": 236.16,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3625,
    "c": 0.18416,
    "h": 270
  },
  "luminance": 0.04143
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F279C

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

Preview Lab → · Contrast checker → · Palette generator →

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