#1F269E#1F269E

#1F269E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.3% C 0.188 H 270.0°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#1F269E
RGBrgb(31, 38, 158)
HSLhsl(237, 67%, 37%)
HSVhsv(237, 80%, 62%)
CMYKcmyk(80.4%, 75.9%, 0%, 38%)
CIE-LABlab(24.15, 40.72, -64.79)
CIE-LCHlch(24.15, 76.52, 302.15°)
OKLaboklab(36.32% 0.0001 -0.1876)
OKLCHoklch(36.32% 0.188 270)
XYZxyz(7.4276, 4.1453, 32.7498)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F269E #9E971F
analogous
#1F669E #1F269E #581F9E
triadic
#1F269E #9E1F26 #269E1F
tetradic
#1F269E #9E1F66 #9E971F #1F9E58
square
#1F269E #9E1F66 #9E971F #1F9E58
split-complementary
#1F269E #9E581F #669E1F
monochromatic
#0B0D38 #151A6B #1F269E #2932D1 #5960DE

Accessibility & contrast

On white

11.48
#1F269E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#1F269E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F269E
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F269E#FFFFFF#000000##FFFFFF
##1F269E1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A1
Deuteranopia (green-blind)
#00339C
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f269e;
/* rgb */ color: rgb(31, 38, 158);
/* oklch */ color: oklch(36.3% 0.188 270.0);
Tailwind
colors: {
  custom: {
    50: '#7362bc',
    500: '#1f269e',
    950: '#000000',
  },
}
SCSS
$custom: #1f269e;
$custom-light: #7362bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f269e",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 158
  },
  "hsl": {
    "h": 236.693,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36323,
    "c": 0.18765,
    "h": 270
  },
  "luminance": 0.04146
}

Semantic roles & 50–950 ramp

primary
#1F269E
secondary
#C2BC56
accent
#E13EEA
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #1F269E

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

Preview Lab → · Contrast checker → · Palette generator →

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