#1F267C#1F267C

#1F267C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.143 H 271.9°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#1F267C
RGBrgb(31, 38, 124)
HSLhsl(235, 60%, 30%)
HSVhsv(235, 75%, 49%)
CMYKcmyk(75%, 69.4%, 0%, 51.4%)
CIE-LABlab(20.57, 28.41, -49.52)
CIE-LCHlch(20.57, 57.09, 299.85°)
OKLaboklab(32.68% 0.0048 -0.1432)
OKLCHoklch(32.68% 0.143 271.9)
XYZxyz(4.8950, 3.1323, 19.4115)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F267C #7C751F
analogous
#1F547C #1F267C #461F7C
triadic
#1F267C #7C1F26 #267C1F
tetradic
#1F267C #7C1F54 #7C751F #1F7C46
square
#1F267C #7C1F54 #7C751F #1F7C46
split-complementary
#1F267C #7C461F #547C1F
monochromatic
#07081A #13174B #1F267C #2B35AD #454FD0

Accessibility & contrast

On white

12.91
#1F267C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F267C
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F267C#FFFFFF#000000##FFFFFF
##1F267C1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f267c;
/* rgb */ color: rgb(31, 38, 124);
/* oklch */ color: oklch(32.7% 0.143 271.9);
Tailwind
colors: {
  custom: {
    50: '#6a60a3',
    500: '#1f267c',
    950: '#000000',
  },
}
SCSS
$custom: #1f267c;
$custom-light: #6a60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f267c",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 124
  },
  "hsl": {
    "h": 235.484,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3268,
    "c": 0.14325,
    "h": 271.9
  },
  "luminance": 0.03133
}

Semantic roles & 50–950 ramp

primary
#1F267C
secondary
#AFA748
accent
#D745E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1F267C

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

Preview Lab → · Contrast checker → · Palette generator →

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