#1F345E#1F345E

#1F345E is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.1% C 0.079 H 262.8°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#1F345E
RGBrgb(31, 52, 94)
HSLhsl(220, 50%, 25%)
HSVhsv(220, 67%, 37%)
CMYKcmyk(67%, 44.7%, 0%, 63.1%)
CIE-LABlab(22.14, 6.75, -27.59)
CIE-LCHlch(22.14, 28.40, 283.75°)
OKLaboklab(33.1% -0.0099 -0.0786)
OKLCHoklch(33.1% 0.079 262.8)
XYZxyz(3.8127, 3.5551, 11.0728)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F345E #5E491F
analogous
#1F545E #1F345E #2A1F5E
triadic
#1F345E #5E1F34 #345E1F
tetradic
#1F345E #5E1F54 #5E491F #1F5E2A
square
#1F345E #5E1F54 #5E491F #1F5E2A
split-complementary
#1F345E #5E2A1F #545E1F
monochromatic
#080D17 #101B30 #1F345E #2E4D8C #3D67BA

Accessibility & contrast

On white

12.27
#1F345E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1F345E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F345E
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F345E#FFFFFF#000000##FFFFFF
##1F345E1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213860
Deuteranopia (green-blind)
#18325D
Tritanopia (blue-blind)
#003D44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f345e;
/* rgb */ color: rgb(31, 52, 94);
/* oklch */ color: oklch(33.1% 0.079 262.8);
Tailwind
colors: {
  custom: {
    50: '#626b8c',
    500: '#1f345e',
    950: '#000000',
  },
}
SCSS
$custom: #1f345e;
$custom-light: #626b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f345e",
  "rgb": {
    "r": 31,
    "g": 52,
    "b": 94
  },
  "hsl": {
    "h": 220,
    "s": 50.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.33101,
    "c": 0.07921,
    "h": 262.8
  },
  "luminance": 0.03555
}

Semantic roles & 50–950 ramp

primary
#1F345E
secondary
#937946
accent
#AB4EDA
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#05060C
muted
#7A7A7D

Preview Lab

Preview with #1F345E

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

Preview Lab → · Contrast checker → · Palette generator →

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