#1F2F6E#1F2F6E

#1F2F6E is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.2% C 0.111 H 268.8°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#1F2F6E
RGBrgb(31, 47, 110)
HSLhsl(228, 56%, 28%)
HSVhsv(228, 72%, 43%)
CMYKcmyk(71.8%, 57.3%, 0%, 56.9%)
CIE-LABlab(21.76, 16.70, -38.61)
CIE-LCHlch(21.76, 42.06, 293.39°)
OKLaboklab(33.18% -0.0022 -0.111)
OKLCHoklch(33.18% 0.111 268.8)
XYZxyz(4.3951, 3.4497, 15.1831)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F6E #6E5E1F
analogous
#1F566E #1F2F6E #361F6E
triadic
#1F2F6E #6E1F2F #2F6E1F
tetradic
#1F2F6E #6E1F56 #6E5E1F #1F6E36
square
#1F2F6E #6E1F56 #6E5E1F #1F6E36
split-complementary
#1F2F6E #6E361F #566E1F
monochromatic
#070A18 #121B3E #1F2F6E #2C439E #3F5BC9

Accessibility & contrast

On white

12.43
#1F2F6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1F2F6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F6E
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F6E#FFFFFF#000000##FFFFFF
##1F2F6E1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003870
Deuteranopia (green-blind)
#00316D
Tritanopia (blue-blind)
#003E49
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2f6e;
/* rgb */ color: rgb(31, 47, 110);
/* oklch */ color: oklch(33.2% 0.111 268.8);
Tailwind
colors: {
  custom: {
    50: '#666798',
    500: '#1f2f6e',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f6e;
$custom-light: #666798;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f6e",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 110
  },
  "hsl": {
    "h": 227.848,
    "s": 56.028,
    "l": 27.647
  },
  "oklch": {
    "l": 0.33179,
    "c": 0.11107,
    "h": 268.8
  },
  "luminance": 0.0345
}

Semantic roles & 50–950 ramp

primary
#1F2F6E
secondary
#A29047
accent
#C148DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #1F2F6E

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

Preview Lab → · Contrast checker → · Palette generator →

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