#1F278C#1F278C

#1F278C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.164 H 270.8°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#1F278C
RGBrgb(31, 39, 140)
HSLhsl(236, 64%, 34%)
HSVhsv(236, 78%, 55%)
CMYKcmyk(77.9%, 72.1%, 0%, 45.1%)
CIE-LABlab(22.43, 33.70, -56.53)
CIE-LCHlch(22.43, 65.81, 300.81°)
OKLaboklab(34.52% 0.0024 -0.1636)
OKLCHoklch(34.52% 0.164 270.8)
XYZxyz(6.0226, 3.6351, 25.1901)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F278C #8C841F
analogous
#1F5D8C #1F278C #4D1F8C
triadic
#1F278C #8C1F27 #278C1F
tetradic
#1F278C #8C1F5D #8C841F #1F8C4D
square
#1F278C #8C1F5D #8C841F #1F8C4D
split-complementary
#1F278C #8C4D1F #5D8C1F
monochromatic
#090B28 #14195A #1F278C #2A35BE #4E58D8

Accessibility & contrast

On white

12.16
#1F278C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F278C
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F278C#FFFFFF#000000##FFFFFF
##1F278C1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f278c;
/* rgb */ color: rgb(31, 39, 140);
/* oklch */ color: oklch(34.5% 0.164 270.8);
Tailwind
colors: {
  custom: {
    50: '#6e62af',
    500: '#1f278c',
    950: '#000000',
  },
}
SCSS
$custom: #1f278c;
$custom-light: #6e62af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f278c",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 140
  },
  "hsl": {
    "h": 235.596,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34517,
    "c": 0.16364,
    "h": 270.8
  },
  "luminance": 0.03636
}

Semantic roles & 50–950 ramp

primary
#1F278C
secondary
#BBB24C
accent
#DB41E7
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F278C

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

Preview Lab → · Contrast checker → · Palette generator →

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