#1F268C#1F268C

#1F268C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.165 H 271.0°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#1F268C
RGBrgb(31, 38, 140)
HSLhsl(236, 64%, 34%)
HSVhsv(236, 78%, 55%)
CMYKcmyk(77.9%, 72.9%, 0%, 45.1%)
CIE-LABlab(22.20, 34.34, -56.90)
CIE-LCHlch(22.20, 66.46, 301.11°)
OKLaboklab(34.35% 0.0029 -0.1647)
OKLCHoklch(34.35% 0.165 271)
XYZxyz(5.9902, 3.5703, 25.1793)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F268C #8C851F
analogous
#1F5C8C #1F268C #4E1F8C
triadic
#1F268C #8C1F26 #268C1F
tetradic
#1F268C #8C1F5C #8C851F #1F8C4E
square
#1F268C #8C1F5C #8C851F #1F8C4E
split-complementary
#1F268C #8C4E1F #5C8C1F
monochromatic
#090B28 #14185A #1F268C #2A34BE #4E57D8

Accessibility & contrast

On white

12.25
#1F268C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1F268C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F268C
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F268C#FFFFFF#000000##FFFFFF
##1F268C1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f268c;
/* rgb */ color: rgb(31, 38, 140);
/* oklch */ color: oklch(34.4% 0.165 271.0);
Tailwind
colors: {
  custom: {
    50: '#6e61af',
    500: '#1f268c',
    950: '#000000',
  },
}
SCSS
$custom: #1f268c;
$custom-light: #6e61af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f268c",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 140
  },
  "hsl": {
    "h": 236.147,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34352,
    "c": 0.16476,
    "h": 271
  },
  "luminance": 0.03571
}

Semantic roles & 50–950 ramp

primary
#1F268C
secondary
#BBB34C
accent
#DC41E7
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F268C

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

Preview Lab → · Contrast checker → · Palette generator →

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