#1F279A#1F279A

#1F279A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.182 H 270.1°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#1F279A
RGBrgb(31, 39, 154)
HSLhsl(236, 66%, 36%)
HSVhsv(236, 80%, 60%)
CMYKcmyk(79.9%, 74.7%, 0%, 39.6%)
CIE-LABlab(23.92, 38.73, -62.72)
CIE-LCHlch(23.92, 73.71, 301.70°)
OKLaboklab(36.03% 0.0004 -0.1816)
OKLCHoklch(36.03% 0.182 270.1)
XYZxyz(7.1213, 4.0746, 30.9767)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F279A #9A921F
analogous
#1F659A #1F279A #551F9A
triadic
#1F279A #9A1F27 #279A1F
tetradic
#1F279A #9A1F65 #9A921F #1F9A55
square
#1F279A #9A1F65 #9A921F #1F9A55
split-complementary
#1F279A #9A551F #659A1F
monochromatic
#0A0D34 #151A67 #1F279A #2934CD #565FDD

Accessibility & contrast

On white

11.57
#1F279A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#1F279A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F279A
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F279A#FFFFFF#000000##FFFFFF
##1F279A1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9D
Deuteranopia (green-blind)
#003398
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f279a;
/* rgb */ color: rgb(31, 39, 154);
/* oklch */ color: oklch(36.0% 0.182 270.1);
Tailwind
colors: {
  custom: {
    50: '#7262b9',
    500: '#1f279a',
    950: '#000000',
  },
}
SCSS
$custom: #1f279a;
$custom-light: #7262b9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f279a",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 154
  },
  "hsl": {
    "h": 236.098,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3603,
    "c": 0.18165,
    "h": 270.1
  },
  "luminance": 0.04075
}

Semantic roles & 50–950 ramp

primary
#1F279A
secondary
#C1BA54
accent
#DE3EE9
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #1F279A

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

Preview Lab → · Contrast checker → · Palette generator →

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