#1F2D4E#1F2D4E

#1F2D4E is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.3% C 0.063 H 265.4°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#1F2D4E
RGBrgb(31, 45, 78)
HSLhsl(222, 43%, 21%)
HSVhsv(222, 60%, 31%)
CMYKcmyk(60.3%, 42.3%, 0%, 69.4%)
CIE-LABlab(18.88, 5.51, -22.14)
CIE-LCHlch(18.88, 22.82, 283.99°)
OKLaboklab(30.25% -0.005 -0.0627)
OKLCHoklch(30.25% 0.063 265.4)
XYZxyz(2.8781, 2.7179, 7.5792)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D4E #4E401F
analogous
#1F454E #1F2D4E #291F4E
triadic
#1F2D4E #4E1F2D #2D4E1F
tetradic
#1F2D4E #4E1F45 #4E401F #1F4E29
square
#1F2D4E #4E1F45 #4E401F #1F4E29
split-complementary
#1F2D4E #4E291F #454E1F
monochromatic
#090D16 #0E1422 #1F2D4E #30467A #4260A6

Accessibility & contrast

On white

13.60
#1F2D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1F2D4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D4E
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D4E#FFFFFF#000000##FFFFFF
##1F2D4E1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20304F
Deuteranopia (green-blind)
#1A2C4D
Tritanopia (blue-blind)
#053439
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f2d4e;
/* rgb */ color: rgb(31, 45, 78);
/* oklch */ color: oklch(30.3% 0.063 265.4);
Tailwind
colors: {
  custom: {
    50: '#5f6580',
    500: '#1f2d4e',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d4e;
$custom-light: #5f6580;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d4e",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 78
  },
  "hsl": {
    "h": 222.128,
    "s": 43.119,
    "l": 21.373
  },
  "oklch": {
    "l": 0.30252,
    "c": 0.0629,
    "h": 265.4
  },
  "luminance": 0.02718
}

Semantic roles & 50–950 ramp

primary
#1F2D4E
secondary
#837146
accent
#AD55D3
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#05050A
muted
#797A7C

Preview Lab

Preview with #1F2D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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