#1F269A#1F269A

#1F269A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.183 H 270.2°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#1F269A
RGBrgb(31, 38, 154)
HSLhsl(237, 66%, 36%)
HSVhsv(237, 80%, 60%)
CMYKcmyk(79.9%, 75.3%, 0%, 39.6%)
CIE-LABlab(23.70, 39.33, -63.07)
CIE-LCHlch(23.70, 74.33, 301.95°)
OKLaboklab(35.88% 0.0008 -0.1827)
OKLCHoklch(35.88% 0.183 270.2)
XYZxyz(7.0889, 4.0098, 30.9659)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F269A #9A931F
analogous
#1F649A #1F269A #561F9A
triadic
#1F269A #9A1F26 #269A1F
tetradic
#1F269A #9A1F64 #9A931F #1F9A56
square
#1F269A #9A1F64 #9A931F #1F9A56
split-complementary
#1F269A #9A561F #649A1F
monochromatic
#0A0D34 #151967 #1F269A #2933CD #565EDD

Accessibility & contrast

On white

11.65
#1F269A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#1F269A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F269A
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F269A#FFFFFF#000000##FFFFFF
##1F269A1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9D
Deuteranopia (green-blind)
#003298
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f269a;
/* rgb */ color: rgb(31, 38, 154);
/* oklch */ color: oklch(35.9% 0.183 270.2);
Tailwind
colors: {
  custom: {
    50: '#7262b9',
    500: '#1f269a',
    950: '#000000',
  },
}
SCSS
$custom: #1f269a;
$custom-light: #7262b9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f269a",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 154
  },
  "hsl": {
    "h": 236.585,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35878,
    "c": 0.18267,
    "h": 270.2
  },
  "luminance": 0.04011
}

Semantic roles & 50–950 ramp

primary
#1F269A
secondary
#C1BA54
accent
#E03EE9
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #1F269A

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

Preview Lab → · Contrast checker → · Palette generator →

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