#1F2F6A#1F2F6A

#1F2F6A is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.8% C 0.105 H 268.6°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#1F2F6A
RGBrgb(31, 47, 106)
HSLhsl(227, 55%, 27%)
HSVhsv(227, 71%, 42%)
CMYKcmyk(70.8%, 55.7%, 0%, 58.4%)
CIE-LABlab(21.45, 15.10, -36.53)
CIE-LCHlch(21.45, 39.53, 292.47°)
OKLaboklab(32.84% -0.0026 -0.1049)
OKLCHoklch(32.84% 0.105 268.6)
XYZxyz(4.1822, 3.3645, 14.0619)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F6A #6A5A1F
analogous
#1F556A #1F2F6A #351F6A
triadic
#1F2F6A #6A1F2F #2F6A1F
tetradic
#1F2F6A #6A1F55 #6A5A1F #1F6A35
square
#1F2F6A #6A1F55 #6A5A1F #1F6A35
split-complementary
#1F2F6A #6A351F #556A1F
monochromatic
#070A18 #111A3B #1F2F6A #2D4499 #3D5AC6

Accessibility & contrast

On white

12.55
#1F2F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1F2F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F6A
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F6A#FFFFFF#000000##FFFFFF
##1F2F6A1.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08376C
Deuteranopia (green-blind)
#003069
Tritanopia (blue-blind)
#003D47
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2f6a;
/* rgb */ color: rgb(31, 47, 106);
/* oklch */ color: oklch(32.8% 0.105 268.6);
Tailwind
colors: {
  custom: {
    50: '#656795',
    500: '#1f2f6a',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f6a;
$custom-light: #656795;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f6a",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 106
  },
  "hsl": {
    "h": 227.2,
    "s": 54.745,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32843,
    "c": 0.10496,
    "h": 268.6
  },
  "luminance": 0.03365
}

Semantic roles & 50–950 ramp

primary
#1F2F6A
secondary
#9E8C47
accent
#BE4ADE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #1F2F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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