#1F2E54#1F2E54

#1F2E54 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 30.9% C 0.071 H 266.1°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#1F2E54
RGBrgb(31, 46, 84)
HSLhsl(223, 46%, 23%)
HSVhsv(223, 63%, 33%)
CMYKcmyk(63.1%, 45.2%, 0%, 67.1%)
CIE-LABlab(19.58, 7.11, -25.06)
CIE-LCHlch(19.58, 26.05, 285.85°)
OKLaboklab(30.92% -0.0048 -0.0712)
OKLCHoklch(30.92% 0.071 266.1)
XYZxyz(3.1418, 2.8851, 8.7771)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E54 #54451F
analogous
#1F4854 #1F2E54 #2B1F54
triadic
#1F2E54 #541F2E #2E541F
tetradic
#1F2E54 #541F48 #54451F #1F542B
square
#1F2E54 #541F48 #54451F #1F542B
split-complementary
#1F2E54 #542B1F #48541F
monochromatic
#080C16 #0F1627 #1F2E54 #2F4681 #405FAD

Accessibility & contrast

On white

13.32
#1F2E54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1F2E54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2E54
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E54#FFFFFF#000000##FFFFFF
##1F2E541.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3255
Deuteranopia (green-blind)
#172D53
Tritanopia (blue-blind)
#00363C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f2e54;
/* rgb */ color: rgb(31, 46, 84);
/* oklch */ color: oklch(30.9% 0.071 266.1);
Tailwind
colors: {
  custom: {
    50: '#606684',
    500: '#1f2e54',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e54;
$custom-light: #606684;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e54",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 84
  },
  "hsl": {
    "h": 223.019,
    "s": 46.087,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30915,
    "c": 0.07138,
    "h": 266.1
  },
  "luminance": 0.02885
}

Semantic roles & 50–950 ramp

primary
#1F2E54
secondary
#897646
accent
#B052D6
background
#F5F6F8
surface
#EAEBEF
border
#C6C6CA
text
#05050B
muted
#797A7C

Preview Lab

Preview with #1F2E54

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

Preview Lab → · Contrast checker → · Palette generator →

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