#1F335D#1F335D

#1F335D is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.8% C 0.079 H 263.5°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#1F335D
RGBrgb(31, 51, 93)
HSLhsl(221, 50%, 24%)
HSVhsv(221, 67%, 36%)
CMYKcmyk(66.7%, 45.2%, 0%, 63.5%)
CIE-LABlab(21.76, 7.07, -27.55)
CIE-LCHlch(21.76, 28.44, 284.39°)
OKLaboklab(32.78% -0.009 -0.0785)
OKLCHoklch(32.78% 0.079 263.5)
XYZxyz(3.7240, 3.4489, 10.8233)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F335D #5D491F
analogous
#1F525D #1F335D #2A1F5D
triadic
#1F335D #5D1F33 #335D1F
tetradic
#1F335D #5D1F52 #5D491F #1F5D2A
square
#1F335D #5D1F52 #5D491F #1F5D2A
split-complementary
#1F335D #5D2A1F #525D1F
monochromatic
#080D17 #101A2F #1F335D #2E4C8B #3E65B9

Accessibility & contrast

On white

12.43
#1F335D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1F335D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F335D
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F335D#FFFFFF#000000##FFFFFF
##1F335D1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20375F
Deuteranopia (green-blind)
#17315C
Tritanopia (blue-blind)
#003C43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f335d;
/* rgb */ color: rgb(31, 51, 93);
/* oklch */ color: oklch(32.8% 0.079 263.5);
Tailwind
colors: {
  custom: {
    50: '#616a8b',
    500: '#1f335d',
    950: '#000000',
  },
}
SCSS
$custom: #1f335d;
$custom-light: #616a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f335d",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 93
  },
  "hsl": {
    "h": 220.645,
    "s": 50,
    "l": 24.314
  },
  "oklch": {
    "l": 0.32785,
    "c": 0.07897,
    "h": 263.5
  },
  "luminance": 0.03449
}

Semantic roles & 50–950 ramp

primary
#1F335D
secondary
#927946
accent
#AD4EDA
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#05060C
muted
#7A7A7D

Preview Lab

Preview with #1F335D

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

Preview Lab → · Contrast checker → · Palette generator →

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