#1F2F6B#1F2F6B

#1F2F6B is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.9% C 0.106 H 268.7°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#1F2F6B
RGBrgb(31, 47, 107)
HSLhsl(227, 55%, 27%)
HSVhsv(227, 71%, 42%)
CMYKcmyk(71%, 56.1%, 0%, 58%)
CIE-LABlab(21.53, 15.50, -37.05)
CIE-LCHlch(21.53, 40.16, 292.70°)
OKLaboklab(32.93% -0.0025 -0.1065)
OKLCHoklch(32.93% 0.107 268.7)
XYZxyz(4.2345, 3.3855, 14.3374)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F6B #6B5B1F
analogous
#1F556B #1F2F6B #351F6B
triadic
#1F2F6B #6B1F2F #2F6B1F
tetradic
#1F2F6B #6B1F55 #6B5B1F #1F6B35
square
#1F2F6B #6B1F55 #6B5B1F #1F6B35
split-complementary
#1F2F6B #6B351F #556B1F
monochromatic
#070A18 #111A3C #1F2F6B #2D449A #3D5AC7

Accessibility & contrast

On white

12.52
#1F2F6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1F2F6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F6B
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F6B#FFFFFF#000000##FFFFFF
##1F2F6B1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06376D
Deuteranopia (green-blind)
#00306A
Tritanopia (blue-blind)
#003D48
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2f6b;
/* rgb */ color: rgb(31, 47, 107);
/* oklch */ color: oklch(32.9% 0.106 268.7);
Tailwind
colors: {
  custom: {
    50: '#656796',
    500: '#1f2f6b',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f6b;
$custom-light: #656796;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f6b",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 107
  },
  "hsl": {
    "h": 227.368,
    "s": 55.072,
    "l": 27.059
  },
  "oklch": {
    "l": 0.32927,
    "c": 0.1065,
    "h": 268.7
  },
  "luminance": 0.03386
}

Semantic roles & 50–950 ramp

primary
#1F2F6B
secondary
#9F8D47
accent
#BF49DE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #1F2F6B

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

Preview Lab → · Contrast checker → · Palette generator →

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