#1F267F#1F267F

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

Color values

HEX#1F267F
RGBrgb(31, 38, 127)
HSLhsl(236, 61%, 31%)
HSVhsv(236, 76%, 50%)
CMYKcmyk(75.6%, 70.1%, 0%, 50.2%)
CIE-LABlab(20.86, 29.54, -50.93)
CIE-LCHlch(20.86, 58.88, 300.11°)
OKLaboklab(32.99% 0.0045 -0.1473)
OKLCHoklch(32.99% 0.147 271.7)
XYZxyz(5.0877, 3.2093, 20.4259)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F267F #7F781F
analogous
#1F567F #1F267F #481F7F
triadic
#1F267F #7F1F26 #267F1F
tetradic
#1F267F #7F1F56 #7F781F #1F7F48
square
#1F267F #7F1F56 #7F781F #1F7F48
split-complementary
#1F267F #7F481F #567F1F
monochromatic
#07091D #13174E #1F267F #2B35B0 #4651D2

Accessibility & contrast

On white

12.79
#1F267F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F267F
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F267F#FFFFFF#000000##FFFFFF
##1F267F1.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f267f;
/* rgb */ color: rgb(31, 38, 127);
/* oklch */ color: oklch(33.0% 0.147 271.7);
Tailwind
colors: {
  custom: {
    50: '#6b60a5',
    500: '#1f267f',
    950: '#000000',
  },
}
SCSS
$custom: #1f267f;
$custom-light: #6b60a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f267f",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 127
  },
  "hsl": {
    "h": 235.625,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32987,
    "c": 0.14737,
    "h": 271.7
  },
  "luminance": 0.0321
}

Semantic roles & 50–950 ramp

primary
#1F267F
secondary
#B2AA48
accent
#D844E4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #1F267F

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

Preview Lab → · Contrast checker → · Palette generator →

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