#1F278B#1F278B

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

Color values

HEX#1F278B
RGBrgb(31, 39, 139)
HSLhsl(236, 64%, 33%)
HSVhsv(236, 78%, 55%)
CMYKcmyk(77.7%, 71.9%, 0%, 45.5%)
CIE-LABlab(22.32, 33.34, -56.07)
CIE-LCHlch(22.32, 65.23, 300.73°)
OKLaboklab(34.41% 0.0025 -0.1623)
OKLCHoklch(34.41% 0.162 270.9)
XYZxyz(5.9492, 3.6058, 24.8035)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F278B #8B831F
analogous
#1F5D8B #1F278B #4D1F8B
triadic
#1F278B #8B1F27 #278B1F
tetradic
#1F278B #8B1F5D #8B831F #1F8B4D
square
#1F278B #8B1F5D #8B831F #1F8B4D
split-complementary
#1F278B #8B4D1F #5D8B1F
monochromatic
#090B27 #141959 #1F278B #2A35BD #4D57D7

Accessibility & contrast

On white

12.20
#1F278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F278B
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F278B#FFFFFF#000000##FFFFFF
##1F278B1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003089
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f278b;
/* rgb */ color: rgb(31, 39, 139);
/* oklch */ color: oklch(34.4% 0.162 270.9);
Tailwind
colors: {
  custom: {
    50: '#6e62ae',
    500: '#1f278b',
    950: '#000000',
  },
}
SCSS
$custom: #1f278b;
$custom-light: #6e62ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f278b",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 235.556,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34411,
    "c": 0.16233,
    "h": 270.9
  },
  "luminance": 0.03606
}

Semantic roles & 50–950 ramp

primary
#1F278B
secondary
#BAB24C
accent
#DA41E7
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F278B

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

Preview Lab → · Contrast checker → · Palette generator →

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