#1F269D#1F269D

#1F269D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.186 H 270.1°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#1F269D
RGBrgb(31, 38, 157)
HSLhsl(237, 67%, 37%)
HSVhsv(237, 80%, 62%)
CMYKcmyk(80.3%, 75.8%, 0%, 38.4%)
CIE-LABlab(24.04, 40.38, -64.36)
CIE-LCHlch(24.04, 75.97, 302.10°)
OKLaboklab(36.21% 0.0003 -0.1864)
OKLCHoklch(36.21% 0.186 270.1)
XYZxyz(7.3419, 4.1110, 32.2983)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F269D #9D961F
analogous
#1F659D #1F269D #571F9D
triadic
#1F269D #9D1F26 #269D1F
tetradic
#1F269D #9D1F65 #9D961F #1F9D57
square
#1F269D #9D1F65 #9D961F #1F9D57
split-complementary
#1F269D #9D571F #659D1F
monochromatic
#0B0D37 #151A6A #1F269D #2932D0 #5860DE

Accessibility & contrast

On white

11.52
#1F269D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#1F269D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F269D
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F269D#FFFFFF#000000##FFFFFF
##1F269D1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA0
Deuteranopia (green-blind)
#00339B
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f269d;
/* rgb */ color: rgb(31, 38, 157);
/* oklch */ color: oklch(36.2% 0.186 270.1);
Tailwind
colors: {
  custom: {
    50: '#7362bb',
    500: '#1f269d',
    950: '#000000',
  },
}
SCSS
$custom: #1f269d;
$custom-light: #7362bb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f269d",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 157
  },
  "hsl": {
    "h": 236.667,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36211,
    "c": 0.18641,
    "h": 270.1
  },
  "luminance": 0.04112
}

Semantic roles & 50–950 ramp

primary
#1F269D
secondary
#C2BC56
accent
#E03EEA
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #1F269D

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

Preview Lab → · Contrast checker → · Palette generator →

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