#1F278D#1F278D

#1F278D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.165 H 270.8°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#1F278D
RGBrgb(31, 39, 141)
HSLhsl(236, 64%, 34%)
HSVhsv(236, 78%, 55%)
CMYKcmyk(78%, 72.3%, 0%, 44.7%)
CIE-LABlab(22.53, 34.07, -56.98)
CIE-LCHlch(22.53, 66.38, 300.88°)
OKLaboklab(34.62% 0.0022 -0.1649)
OKLCHoklch(34.62% 0.165 270.8)
XYZxyz(6.0967, 3.6648, 25.5802)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F278D #8D851F
analogous
#1F5E8D #1F278D #4E1F8D
triadic
#1F278D #8D1F27 #278D1F
tetradic
#1F278D #8D1F5E #8D851F #1F8D4E
square
#1F278D #8D1F5E #8D851F #1F8D4E
split-complementary
#1F278D #8D4E1F #5E8D1F
monochromatic
#090B29 #14195B #1F278D #2A35BF #4E58D8

Accessibility & contrast

On white

12.12
#1F278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1F278D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F278D
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F278D#FFFFFF#000000##FFFFFF
##1F278D1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f278d;
/* rgb */ color: rgb(31, 39, 141);
/* oklch */ color: oklch(34.6% 0.165 270.8);
Tailwind
colors: {
  custom: {
    50: '#6e62af',
    500: '#1f278d',
    950: '#000000',
  },
}
SCSS
$custom: #1f278d;
$custom-light: #6e62af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f278d",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 235.636,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34623,
    "c": 0.16496,
    "h": 270.8
  },
  "luminance": 0.03665
}

Semantic roles & 50–950 ramp

primary
#1F278D
secondary
#BBB34D
accent
#DB41E7
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080511
muted
#7B7980

Preview Lab

Preview with #1F278D

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

Preview Lab → · Contrast checker → · Palette generator →

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