#1F268B#1F268B

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

Color values

HEX#1F268B
RGBrgb(31, 38, 139)
HSLhsl(236, 64%, 33%)
HSVhsv(236, 78%, 55%)
CMYKcmyk(77.7%, 72.7%, 0%, 45.5%)
CIE-LABlab(22.09, 33.97, -56.45)
CIE-LCHlch(22.09, 65.89, 301.04°)
OKLaboklab(34.24% 0.003 -0.1634)
OKLCHoklch(34.24% 0.163 271.1)
XYZxyz(5.9168, 3.5410, 24.7927)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F268B #8B841F
analogous
#1F5C8B #1F268B #4E1F8B
triadic
#1F268B #8B1F26 #268B1F
tetradic
#1F268B #8B1F5C #8B841F #1F8B4E
square
#1F268B #8B1F5C #8B841F #1F8B4E
split-complementary
#1F268B #8B4E1F #5C8B1F
monochromatic
#090B27 #141859 #1F268B #2A34BD #4D56D7

Accessibility & contrast

On white

12.29
#1F268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F268B
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F268B#FFFFFF#000000##FFFFFF
##1F268B1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003089
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f268b;
/* rgb */ color: rgb(31, 38, 139);
/* oklch */ color: oklch(34.2% 0.163 271.1);
Tailwind
colors: {
  custom: {
    50: '#6e61ae',
    500: '#1f268b',
    950: '#000000',
  },
}
SCSS
$custom: #1f268b;
$custom-light: #6e61ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f268b",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 236.111,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34245,
    "c": 0.16344,
    "h": 271.1
  },
  "luminance": 0.03542
}

Semantic roles & 50–950 ramp

primary
#1F268B
secondary
#BAB34C
accent
#DC41E7
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F268B

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

Preview Lab → · Contrast checker → · Palette generator →

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