#1F336E#1F336E

#1F336E is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.1% C 0.106 H 266.7°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#1F336E
RGBrgb(31, 51, 110)
HSLhsl(225, 56%, 28%)
HSVhsv(225, 72%, 43%)
CMYKcmyk(71.8%, 53.6%, 0%, 56.9%)
CIE-LABlab(22.95, 13.85, -36.69)
CIE-LCHlch(22.95, 39.22, 290.68°)
OKLaboklab(34.07% -0.0061 -0.1053)
OKLCHoklch(34.07% 0.106 266.7)
XYZxyz(4.5624, 3.7843, 15.2388)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F336E #6E5A1F
analogous
#1F5A6E #1F336E #321F6E
triadic
#1F336E #6E1F33 #336E1F
tetradic
#1F336E #6E1F5A #6E5A1F #1F6E32
square
#1F336E #6E1F5A #6E5A1F #1F6E32
split-complementary
#1F336E #6E321F #5A6E1F
monochromatic
#070B18 #121D3E #1F336E #2C499E #3F62C9

Accessibility & contrast

On white

11.95
#1F336E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#1F336E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F336E
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F336E#FFFFFF#000000##FFFFFF
##1F336E1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103B70
Deuteranopia (green-blind)
#00336D
Tritanopia (blue-blind)
#00414B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f336e;
/* rgb */ color: rgb(31, 51, 110);
/* oklch */ color: oklch(34.1% 0.106 266.7);
Tailwind
colors: {
  custom: {
    50: '#656a98',
    500: '#1f336e',
    950: '#000000',
  },
}
SCSS
$custom: #1f336e;
$custom-light: #656a98;
$custom-dark: #000000;
JSON
{
  "hex": "#1f336e",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 110
  },
  "hsl": {
    "h": 224.81,
    "s": 56.028,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34073,
    "c": 0.10553,
    "h": 266.7
  },
  "luminance": 0.03785
}

Semantic roles & 50–950 ramp

primary
#1F336E
secondary
#A28B47
accent
#B948DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #1F336E

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

Preview Lab → · Contrast checker → · Palette generator →

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