#1F2E68#1F2E68

#1F2E68 is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.5% C 0.103 H 269.0°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#1F2E68
RGBrgb(31, 46, 104)
HSLhsl(228, 54%, 26%)
HSVhsv(228, 70%, 41%)
CMYKcmyk(70.2%, 55.8%, 0%, 59.2%)
CIE-LABlab(21.00, 15.02, -35.96)
CIE-LCHlch(21.00, 38.97, 292.67°)
OKLaboklab(32.45% -0.0017 -0.1033)
OKLCHoklch(32.45% 0.103 269)
XYZxyz(4.0399, 3.2444, 13.5073)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E68 #68591F
analogous
#1F5368 #1F2E68 #351F68
triadic
#1F2E68 #681F2E #2E681F
tetradic
#1F2E68 #681F53 #68591F #1F6835
square
#1F2E68 #681F53 #68591F #1F6835
split-complementary
#1F2E68 #68351F #53681F
monochromatic
#070A18 #111939 #1F2E68 #2D4397 #3C58C5

Accessibility & contrast

On white

12.73
#1F2E68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1F2E68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2E68
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E68#FFFFFF#000000##FFFFFF
##1F2E681.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2e68;
/* rgb */ color: rgb(31, 46, 104);
/* oklch */ color: oklch(32.5% 0.103 269.0);
Tailwind
colors: {
  custom: {
    50: '#646694',
    500: '#1f2e68',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e68;
$custom-light: #646694;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e68",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 104
  },
  "hsl": {
    "h": 227.671,
    "s": 54.074,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32454,
    "c": 0.10328,
    "h": 269
  },
  "luminance": 0.03245
}

Semantic roles & 50–950 ramp

primary
#1F2E68
secondary
#9C8B46
accent
#BF4ADD
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#06050D
muted
#7A7A7E

Preview Lab

Preview with #1F2E68

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

Preview Lab → · Contrast checker → · Palette generator →

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