#1F267A#1F267A

#1F267A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.140 H 272.0°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#1F267A
RGBrgb(31, 38, 122)
HSLhsl(235, 59%, 30%)
HSVhsv(235, 75%, 48%)
CMYKcmyk(74.6%, 68.9%, 0%, 52.2%)
CIE-LABlab(20.37, 27.66, -48.57)
CIE-LCHlch(20.37, 55.89, 299.66°)
OKLaboklab(32.48% 0.005 -0.1404)
OKLCHoklch(32.48% 0.14 272)
XYZxyz(4.7699, 3.0822, 18.7521)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F267A #7A731F
analogous
#1F537A #1F267A #461F7A
triadic
#1F267A #7A1F26 #267A1F
tetradic
#1F267A #7A1F53 #7A731F #1F7A46
square
#1F267A #7A1F53 #7A731F #1F7A46
split-complementary
#1F267A #7A461F #537A1F
monochromatic
#060818 #131749 #1F267A #2B35AB #444FCF

Accessibility & contrast

On white

12.99
#1F267A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1F267A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F267A
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F267A#FFFFFF#000000##FFFFFF
##1F267A1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#002D78
Tritanopia (blue-blind)
#003C4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f267a;
/* rgb */ color: rgb(31, 38, 122);
/* oklch */ color: oklch(32.5% 0.140 272.0);
Tailwind
colors: {
  custom: {
    50: '#6960a1',
    500: '#1f267a',
    950: '#000000',
  },
}
SCSS
$custom: #1f267a;
$custom-light: #6960a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f267a",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 122
  },
  "hsl": {
    "h": 235.385,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.32478,
    "c": 0.14047,
    "h": 272
  },
  "luminance": 0.03083
}

Semantic roles & 50–950 ramp

primary
#1F267A
secondary
#ADA647
accent
#D745E3
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1F267A

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

Preview Lab → · Contrast checker → · Palette generator →

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