#1F276F#1F276F

#1F276F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.6% C 0.123 H 272.3°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#1F276F
RGBrgb(31, 39, 111)
HSLhsl(234, 56%, 28%)
HSVhsv(234, 72%, 44%)
CMYKcmyk(72.1%, 64.9%, 0%, 56.5%)
CIE-LABlab(19.60, 22.76, -42.77)
CIE-LCHlch(19.60, 48.45, 298.02°)
OKLaboklab(31.59% 0.005 -0.1234)
OKLCHoklch(31.59% 0.124 272.3)
XYZxyz(4.1589, 2.8896, 15.3744)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F276F #6F671F
analogous
#1F4F6F #1F276F #3F1F6F
triadic
#1F276F #6F1F27 #276F1F
tetradic
#1F276F #6F1F4F #6F671F #1F6F3F
square
#1F276F #6F1F4F #6F671F #1F6F3F
split-complementary
#1F276F #6F3F1F #4F6F1F
monochromatic
#070818 #12163F #1F276F #2C389F #3F4DC9

Accessibility & contrast

On white

13.31
#1F276F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1F276F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F276F
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F276F#FFFFFF#000000##FFFFFF
##1F276F1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#002C6E
Tritanopia (blue-blind)
#003947
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f276f;
/* rgb */ color: rgb(31, 39, 111);
/* oklch */ color: oklch(31.6% 0.123 272.3);
Tailwind
colors: {
  custom: {
    50: '#666199',
    500: '#1f276f',
    950: '#000000',
  },
}
SCSS
$custom: #1f276f;
$custom-light: #666199;
$custom-dark: #000000;
JSON
{
  "hex": "#1f276f",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 111
  },
  "hsl": {
    "h": 234,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31592,
    "c": 0.1235,
    "h": 272.3
  },
  "luminance": 0.0289
}

Semantic roles & 50–950 ramp

primary
#1F276F
secondary
#A39A47
accent
#D048E0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1F276F

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

Preview Lab → · Contrast checker → · Palette generator →

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