#1F2679#1F2679

#1F2679 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.4% C 0.139 H 272.1°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#1F2679
RGBrgb(31, 38, 121)
HSLhsl(235, 59%, 30%)
HSVhsv(235, 74%, 47%)
CMYKcmyk(74.4%, 68.6%, 0%, 52.5%)
CIE-LABlab(20.27, 27.28, -48.09)
CIE-LCHlch(20.27, 55.29, 299.57°)
OKLaboklab(32.38% 0.0051 -0.139)
OKLCHoklch(32.38% 0.139 272.1)
XYZxyz(4.7082, 3.0575, 18.4275)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2679 #79721F
analogous
#1F5379 #1F2679 #451F79
triadic
#1F2679 #791F26 #26791F
tetradic
#1F2679 #791F53 #79721F #1F7945
square
#1F2679 #791F53 #79721F #1F7945
split-complementary
#1F2679 #79451F #53791F
monochromatic
#060818 #131748 #1F2679 #2B35AA #434ECF

Accessibility & contrast

On white

13.03
#1F2679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1F2679 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2679
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2679#FFFFFF#000000##FFFFFF
##1F26791.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2679;
/* rgb */ color: rgb(31, 38, 121);
/* oklch */ color: oklch(32.4% 0.139 272.1);
Tailwind
colors: {
  custom: {
    50: '#6960a1',
    500: '#1f2679',
    950: '#000000',
  },
}
SCSS
$custom: #1f2679;
$custom-light: #6960a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2679",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 121
  },
  "hsl": {
    "h": 235.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32377,
    "c": 0.13907,
    "h": 272.1
  },
  "luminance": 0.03058
}

Semantic roles & 50–950 ramp

primary
#1F2679
secondary
#ACA547
accent
#D645E2
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1F2679

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

Preview Lab → · Contrast checker → · Palette generator →

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