#1F2F68#1F2F68

#1F2F68 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.7% C 0.102 H 268.4°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#1F2F68
RGBrgb(31, 47, 104)
HSLhsl(227, 54%, 26%)
HSVhsv(227, 70%, 41%)
CMYKcmyk(70.2%, 54.8%, 0%, 59.2%)
CIE-LABlab(21.30, 14.31, -35.48)
CIE-LCHlch(21.30, 38.25, 291.96°)
OKLaboklab(32.68% -0.0028 -0.1018)
OKLCHoklch(32.68% 0.102 268.4)
XYZxyz(4.0794, 3.3234, 13.5205)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F68 #68581F
analogous
#1F5468 #1F2F68 #341F68
triadic
#1F2F68 #681F2F #2F681F
tetradic
#1F2F68 #681F54 #68581F #1F6834
square
#1F2F68 #681F54 #68581F #1F6834
split-complementary
#1F2F68 #68341F #54681F
monochromatic
#070B18 #111A39 #1F2F68 #2D4497 #3C5AC5

Accessibility & contrast

On white

12.61
#1F2F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1F2F68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F68
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F68#FFFFFF#000000##FFFFFF
##1F2F681.0012.611.6612.61
#FFFFFF12.611.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C376A
Deuteranopia (green-blind)
#003067
Tritanopia (blue-blind)
#003C46
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2f68;
/* rgb */ color: rgb(31, 47, 104);
/* oklch */ color: oklch(32.7% 0.102 268.4);
Tailwind
colors: {
  custom: {
    50: '#646794',
    500: '#1f2f68',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f68;
$custom-light: #646794;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f68",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 104
  },
  "hsl": {
    "h": 226.849,
    "s": 54.074,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32679,
    "c": 0.10188,
    "h": 268.4
  },
  "luminance": 0.03324
}

Semantic roles & 50–950 ramp

primary
#1F2F68
secondary
#9C8A46
accent
#BD4ADD
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #1F2F68

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

Preview Lab → · Contrast checker → · Palette generator →

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