#1F268A#1F268A

#1F268A is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.162 H 271.1°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#1F268A
RGBrgb(31, 38, 138)
HSLhsl(236, 63%, 33%)
HSVhsv(236, 78%, 54%)
CMYKcmyk(77.5%, 72.5%, 0%, 45.9%)
CIE-LABlab(21.99, 33.61, -56.00)
CIE-LCHlch(21.99, 65.31, 300.97°)
OKLaboklab(34.14% 0.0032 -0.1621)
OKLCHoklch(34.14% 0.162 271.1)
XYZxyz(5.8441, 3.5119, 24.4097)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F268A #8A831F
analogous
#1F5B8A #1F268A #4D1F8A
triadic
#1F268A #8A1F26 #268A1F
tetradic
#1F268A #8A1F5B #8A831F #1F8A4D
square
#1F268A #8A1F5B #8A831F #1F8A4D
split-complementary
#1F268A #8A4D1F #5B8A1F
monochromatic
#090A26 #141858 #1F268A #2A34BC #4C56D7

Accessibility & contrast

On white

12.33
#1F268A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1F268A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F268A
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F268A#FFFFFF#000000##FFFFFF
##1F268A1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f268a;
/* rgb */ color: rgb(31, 38, 138);
/* oklch */ color: oklch(34.1% 0.162 271.1);
Tailwind
colors: {
  custom: {
    50: '#6e61ad',
    500: '#1f268a',
    950: '#000000',
  },
}
SCSS
$custom: #1f268a;
$custom-light: #6e61ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f268a",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 138
  },
  "hsl": {
    "h": 236.075,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34138,
    "c": 0.16213,
    "h": 271.1
  },
  "luminance": 0.03513
}

Semantic roles & 50–950 ramp

primary
#1F268A
secondary
#BAB24B
accent
#DC41E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F268A

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

Preview Lab → · Contrast checker → · Palette generator →

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