#1F267E#1F267E

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

Color values

HEX#1F267E
RGBrgb(31, 38, 126)
HSLhsl(236, 61%, 31%)
HSVhsv(236, 75%, 49%)
CMYKcmyk(75.4%, 69.8%, 0%, 50.6%)
CIE-LABlab(20.76, 29.17, -50.46)
CIE-LCHlch(20.76, 58.29, 300.03°)
OKLaboklab(32.88% 0.0046 -0.1459)
OKLCHoklch(32.88% 0.146 271.8)
XYZxyz(5.0228, 3.1834, 20.0844)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F267E #7E771F
analogous
#1F557E #1F267E #471F7E
triadic
#1F267E #7E1F26 #267E1F
tetradic
#1F267E #7E1F55 #7E771F #1F7E47
square
#1F267E #7E1F55 #7E771F #1F7E47
split-complementary
#1F267E #7E471F #557E1F
monochromatic
#07081C #13174D #1F267E #2B35AF #4650D1

Accessibility & contrast

On white

12.83
#1F267E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F267E
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F267E#FFFFFF#000000##FFFFFF
##1F267E1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f267e;
/* rgb */ color: rgb(31, 38, 126);
/* oklch */ color: oklch(32.9% 0.146 271.8);
Tailwind
colors: {
  custom: {
    50: '#6a60a4',
    500: '#1f267e',
    950: '#000000',
  },
}
SCSS
$custom: #1f267e;
$custom-light: #6a60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f267e",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 126
  },
  "hsl": {
    "h": 235.579,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32884,
    "c": 0.146,
    "h": 271.8
  },
  "luminance": 0.03184
}

Semantic roles & 50–950 ramp

primary
#1F267E
secondary
#B1A948
accent
#D844E4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1F267E

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

Preview Lab → · Contrast checker → · Palette generator →

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