#1F278A#1F278A

#1F278A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.161 H 270.9°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#1F278A
RGBrgb(31, 39, 138)
HSLhsl(236, 63%, 33%)
HSVhsv(236, 78%, 54%)
CMYKcmyk(77.5%, 71.7%, 0%, 45.9%)
CIE-LABlab(22.22, 32.97, -55.62)
CIE-LCHlch(22.22, 64.66, 300.66°)
OKLaboklab(34.31% 0.0026 -0.161)
OKLCHoklch(34.31% 0.161 270.9)
XYZxyz(5.8765, 3.5767, 24.4205)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F278A #8A821F
analogous
#1F5C8A #1F278A #4C1F8A
triadic
#1F278A #8A1F27 #278A1F
tetradic
#1F278A #8A1F5C #8A821F #1F8A4C
square
#1F278A #8A1F5C #8A821F #1F8A4C
split-complementary
#1F278A #8A4C1F #5C8A1F
monochromatic
#090B26 #141958 #1F278A #2A35BC #4C57D7

Accessibility & contrast

On white

12.24
#1F278A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1F278A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F278A
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F278A#FFFFFF#000000##FFFFFF
##1F278A1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003088
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f278a;
/* rgb */ color: rgb(31, 39, 138);
/* oklch */ color: oklch(34.3% 0.161 270.9);
Tailwind
colors: {
  custom: {
    50: '#6d61ad',
    500: '#1f278a',
    950: '#000000',
  },
}
SCSS
$custom: #1f278a;
$custom-light: #6d61ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f278a",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 138
  },
  "hsl": {
    "h": 235.514,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34306,
    "c": 0.161,
    "h": 270.9
  },
  "luminance": 0.03577
}

Semantic roles & 50–950 ramp

primary
#1F278A
secondary
#BAB14B
accent
#DA41E6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F278A

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

Preview Lab → · Contrast checker → · Palette generator →

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