#1F277C#1F277C

#1F277C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.142 H 271.7°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#1F277C
RGBrgb(31, 39, 124)
HSLhsl(235, 60%, 30%)
HSVhsv(235, 75%, 49%)
CMYKcmyk(75%, 68.5%, 0%, 51.4%)
CIE-LABlab(20.82, 27.75, -49.11)
CIE-LCHlch(20.82, 56.40, 299.47°)
OKLaboklab(32.86% 0.0041 -0.142)
OKLCHoklch(32.86% 0.142 271.7)
XYZxyz(4.9275, 3.1971, 19.4223)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F277C #7C741F
analogous
#1F557C #1F277C #461F7C
triadic
#1F277C #7C1F27 #277C1F
tetradic
#1F277C #7C1F55 #7C741F #1F7C46
square
#1F277C #7C1F55 #7C741F #1F7C46
split-complementary
#1F277C #7C461F #557C1F
monochromatic
#07081A #13184B #1F277C #2B36AD #4551D0

Accessibility & contrast

On white

12.81
#1F277C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1F277C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F277C
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F277C#FFFFFF#000000##FFFFFF
##1F277C1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f277c;
/* rgb */ color: rgb(31, 39, 124);
/* oklch */ color: oklch(32.9% 0.142 271.7);
Tailwind
colors: {
  custom: {
    50: '#6a61a3',
    500: '#1f277c',
    950: '#000000',
  },
}
SCSS
$custom: #1f277c;
$custom-light: #6a61a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f277c",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 124
  },
  "hsl": {
    "h": 234.839,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32863,
    "c": 0.14202,
    "h": 271.7
  },
  "luminance": 0.03198
}

Semantic roles & 50–950 ramp

primary
#1F277C
secondary
#AFA648
accent
#D645E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1F277C

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

Preview Lab → · Contrast checker → · Palette generator →

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