#1F288B#1F288B

#1F288B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.161 H 270.7°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#1F288B
RGBrgb(31, 40, 139)
HSLhsl(235, 64%, 33%)
HSVhsv(235, 78%, 55%)
CMYKcmyk(77.7%, 71.2%, 0%, 45.5%)
CIE-LABlab(22.56, 32.70, -55.69)
CIE-LCHlch(22.56, 64.58, 300.42°)
OKLaboklab(34.58% 0.002 -0.1612)
OKLCHoklch(34.58% 0.161 270.7)
XYZxyz(5.9825, 3.6723, 24.8146)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F288B #8B821F
analogous
#1F5E8B #1F288B #4C1F8B
triadic
#1F288B #8B1F28 #288B1F
tetradic
#1F288B #8B1F5E #8B821F #1F8B4C
square
#1F288B #8B1F5E #8B821F #1F8B4C
split-complementary
#1F288B #8B4C1F #5E8B1F
monochromatic
#090B27 #141A59 #1F288B #2A36BD #4D59D7

Accessibility & contrast

On white

12.11
#1F288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1F288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F288B
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F288B#FFFFFF#000000##FFFFFF
##1F288B1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f288b;
/* rgb */ color: rgb(31, 40, 139);
/* oklch */ color: oklch(34.6% 0.161 270.7);
Tailwind
colors: {
  custom: {
    50: '#6e62ae',
    500: '#1f288b',
    950: '#000000',
  },
}
SCSS
$custom: #1f288b;
$custom-light: #6e62ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f288b",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 235,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3458,
    "c": 0.16119,
    "h": 270.7
  },
  "luminance": 0.03673
}

Semantic roles & 50–950 ramp

primary
#1F288B
secondary
#BAB14C
accent
#D941E7
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F288B

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

Preview Lab → · Contrast checker → · Palette generator →

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