#1F2D68#1F2D68

#1F2D68 is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.2% C 0.105 H 269.6°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#1F2D68
RGBrgb(31, 45, 104)
HSLhsl(228, 54%, 26%)
HSVhsv(228, 70%, 41%)
CMYKcmyk(70.2%, 56.7%, 0%, 59.2%)
CIE-LABlab(20.70, 15.74, -36.44)
CIE-LCHlch(20.70, 39.69, 293.36°)
OKLaboklab(32.23% -0.0007 -0.1047)
OKLCHoklch(32.23% 0.105 269.6)
XYZxyz(4.0013, 3.1672, 13.4945)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D68 #685A1F
analogous
#1F5268 #1F2D68 #361F68
triadic
#1F2D68 #681F2D #2D681F
tetradic
#1F2D68 #681F52 #685A1F #1F6836
square
#1F2D68 #681F52 #685A1F #1F6836
split-complementary
#1F2D68 #68361F #52681F
monochromatic
#070A18 #111939 #1F2D68 #2D4197 #3C57C5

Accessibility & contrast

On white

12.86
#1F2D68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1F2D68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D68
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D68#FFFFFF#000000##FFFFFF
##1F2D681.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04356A
Deuteranopia (green-blind)
#002F67
Tritanopia (blue-blind)
#003B45
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f2d68;
/* rgb */ color: rgb(31, 45, 104);
/* oklch */ color: oklch(32.2% 0.105 269.6);
Tailwind
colors: {
  custom: {
    50: '#646594',
    500: '#1f2d68',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d68;
$custom-light: #646594;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d68",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 104
  },
  "hsl": {
    "h": 228.493,
    "s": 54.074,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3223,
    "c": 0.1047,
    "h": 269.6
  },
  "luminance": 0.03168
}

Semantic roles & 50–950 ramp

primary
#1F2D68
secondary
#9C8C46
accent
#C14ADD
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#06050D
muted
#7A7A7E

Preview Lab

Preview with #1F2D68

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

Preview Lab → · Contrast checker → · Palette generator →

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