#1F278E#1F278E

#1F278E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.166 H 270.7°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#1F278E
RGBrgb(31, 39, 142)
HSLhsl(236, 64%, 34%)
HSVhsv(236, 78%, 56%)
CMYKcmyk(78.2%, 72.5%, 0%, 44.3%)
CIE-LABlab(22.64, 34.43, -57.43)
CIE-LCHlch(22.64, 66.96, 300.95°)
OKLaboklab(34.73% 0.0021 -0.1662)
OKLCHoklch(34.73% 0.166 270.7)
XYZxyz(6.1714, 3.6947, 25.9738)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F278E #8E861F
analogous
#1F5F8E #1F278E #4F1F8E
triadic
#1F278E #8E1F27 #278E1F
tetradic
#1F278E #8E1F5F #8E861F #1F8E4F
square
#1F278E #8E1F5F #8E861F #1F8E4F
split-complementary
#1F278E #8E4F1F #5F8E1F
monochromatic
#090B2A #14195C #1F278E #2A35C0 #4F59D9

Accessibility & contrast

On white

12.08
#1F278E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1F278E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F278E
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F278E#FFFFFF#000000##FFFFFF
##1F278E1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f278e;
/* rgb */ color: rgb(31, 39, 142);
/* oklch */ color: oklch(34.7% 0.166 270.7);
Tailwind
colors: {
  custom: {
    50: '#6e62b0',
    500: '#1f278e',
    950: '#000000',
  },
}
SCSS
$custom: #1f278e;
$custom-light: #6e62b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f278e",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 235.676,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3473,
    "c": 0.16626,
    "h": 270.7
  },
  "luminance": 0.03695
}

Semantic roles & 50–950 ramp

primary
#1F278E
secondary
#BBB44D
accent
#DB41E7
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F278E

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

Preview Lab → · Contrast checker → · Palette generator →

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