#1F267D#1F267D

#1F267D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.145 H 271.9°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#1F267D
RGBrgb(31, 38, 125)
HSLhsl(236, 60%, 31%)
HSVhsv(236, 75%, 49%)
CMYKcmyk(75.2%, 69.6%, 0%, 51%)
CIE-LABlab(20.66, 28.79, -49.99)
CIE-LCHlch(20.66, 57.69, 299.94°)
OKLaboklab(32.78% 0.0047 -0.1446)
OKLCHoklch(32.78% 0.145 271.9)
XYZxyz(4.9586, 3.1577, 19.7462)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F267D #7D761F
analogous
#1F557D #1F267D #471F7D
triadic
#1F267D #7D1F26 #267D1F
tetradic
#1F267D #7D1F55 #7D761F #1F7D47
square
#1F267D #7D1F55 #7D761F #1F7D47
split-complementary
#1F267D #7D471F #557D1F
monochromatic
#07081B #13174C #1F267D #2B35AE #4550D1

Accessibility & contrast

On white

12.87
#1F267D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1F267D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F267D
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F267D#FFFFFF#000000##FFFFFF
##1F267D1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f267d;
/* rgb */ color: rgb(31, 38, 125);
/* oklch */ color: oklch(32.8% 0.145 271.9);
Tailwind
colors: {
  custom: {
    50: '#6a60a4',
    500: '#1f267d',
    950: '#000000',
  },
}
SCSS
$custom: #1f267d;
$custom-light: #6a60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f267d",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 125
  },
  "hsl": {
    "h": 235.532,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32782,
    "c": 0.14463,
    "h": 271.9
  },
  "luminance": 0.03158
}

Semantic roles & 50–950 ramp

primary
#1F267D
secondary
#B0A848
accent
#D844E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1F267D

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

Preview Lab → · Contrast checker → · Palette generator →

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