#1F2E6D#1F2E6D

#1F2E6D is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.9% C 0.111 H 269.3°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#1F2E6D
RGBrgb(31, 46, 109)
HSLhsl(228, 56%, 27%)
HSVhsv(228, 72%, 43%)
CMYKcmyk(71.6%, 57.8%, 0%, 57.3%)
CIE-LABlab(21.39, 17.01, -38.56)
CIE-LCHlch(21.39, 42.15, 293.81°)
OKLaboklab(32.88% -0.0014 -0.1109)
OKLCHoklch(32.88% 0.111 269.3)
XYZxyz(4.3014, 3.3490, 14.8848)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E6D #6D5E1F
analogous
#1F556D #1F2E6D #371F6D
triadic
#1F2E6D #6D1F2E #2E6D1F
tetradic
#1F2E6D #6D1F55 #6D5E1F #1F6D37
square
#1F2E6D #6D1F55 #6D5E1F #1F6D37
split-complementary
#1F2E6D #6D371F #556D1F
monochromatic
#070A18 #111A3D #1F2E6D #2D429D #3E59C8

Accessibility & contrast

On white

12.58
#1F2E6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2E6D
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E6D#FFFFFF#000000##FFFFFF
##1F2E6D1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00376F
Deuteranopia (green-blind)
#00306C
Tritanopia (blue-blind)
#003D48
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2e6d;
/* rgb */ color: rgb(31, 46, 109);
/* oklch */ color: oklch(32.9% 0.111 269.3);
Tailwind
colors: {
  custom: {
    50: '#656697',
    500: '#1f2e6d',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e6d;
$custom-light: #656697;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e6d",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 109
  },
  "hsl": {
    "h": 228.462,
    "s": 55.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32875,
    "c": 0.11094,
    "h": 269.3
  },
  "luminance": 0.03349
}

Semantic roles & 50–950 ramp

primary
#1F2E6D
secondary
#A19047
accent
#C249DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050D
muted
#7A7A7E

Preview Lab

Preview with #1F2E6D

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

Preview Lab → · Contrast checker → · Palette generator →

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