#1F2F8B#1F2F8B

#1F2F8B is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.153 H 269.2°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#1F2F8B
RGBrgb(31, 47, 139)
HSLhsl(231, 64%, 33%)
HSVhsv(231, 78%, 55%)
CMYKcmyk(77.7%, 66.2%, 0%, 45.5%)
CIE-LABlab(24.28, 28.08, -52.85)
CIE-LCHlch(24.28, 59.85, 297.98°)
OKLaboklab(35.84% -0.0022 -0.1529)
OKLCHoklch(35.84% 0.153 269.2)
XYZxyz(6.2402, 4.1877, 24.9005)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F8B #8B7B1F
analogous
#1F658B #1F2F8B #451F8B
triadic
#1F2F8B #8B1F2F #2F8B1F
tetradic
#1F2F8B #8B1F65 #8B7B1F #1F8B45
square
#1F2F8B #8B1F65 #8B7B1F #1F8B45
split-complementary
#1F2F8B #8B451F #658B1F
monochromatic
#090D27 #141E59 #1F2F8B #2A40BD #4D62D7

Accessibility & contrast

On white

11.43
#1F2F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#1F2F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F8B
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F8B#FFFFFF#000000##FFFFFF
##1F2F8B1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f2f8b;
/* rgb */ color: rgb(31, 47, 139);
/* oklch */ color: oklch(35.8% 0.153 269.2);
Tailwind
colors: {
  custom: {
    50: '#6d67ae',
    500: '#1f2f8b',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f8b;
$custom-light: #6d67ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f8b",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 231.111,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35837,
    "c": 0.15289,
    "h": 269.2
  },
  "luminance": 0.04188
}

Semantic roles & 50–950 ramp

primary
#1F2F8B
secondary
#BAAA4C
accent
#CE41E7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F2F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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