#1F3262#1F3262

#1F3262 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 32.9% C 0.088 H 265.6°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#1F3262
RGBrgb(31, 50, 98)
HSLhsl(223, 52%, 25%)
HSVhsv(223, 68%, 38%)
CMYKcmyk(68.4%, 49%, 0%, 61.6%)
CIE-LABlab(21.78, 9.76, -30.79)
CIE-LCHlch(21.78, 32.30, 287.59°)
OKLaboklab(32.91% -0.0068 -0.088)
OKLCHoklch(32.91% 0.088 265.6)
XYZxyz(3.9095, 3.4540, 12.0136)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3262 #624F1F
analogous
#1F5362 #1F3262 #2D1F62
triadic
#1F3262 #621F32 #32621F
tetradic
#1F3262 #621F53 #624F1F #1F622D
square
#1F3262 #621F53 #624F1F #1F622D
split-complementary
#1F3262 #622D1F #53621F
monochromatic
#070C17 #101A34 #1F3262 #2E4A90 #3C61BF

Accessibility & contrast

On white

12.42
#1F3262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F3262
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3262#FFFFFF#000000##FFFFFF
##1F32621.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3764
Deuteranopia (green-blind)
#0F3161
Tritanopia (blue-blind)
#003D45
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f3262;
/* rgb */ color: rgb(31, 50, 98);
/* oklch */ color: oklch(32.9% 0.088 265.6);
Tailwind
colors: {
  custom: {
    50: '#63698f',
    500: '#1f3262',
    950: '#000000',
  },
}
SCSS
$custom: #1f3262;
$custom-light: #63698f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3262",
  "rgb": {
    "r": 31,
    "g": 50,
    "b": 98
  },
  "hsl": {
    "h": 222.985,
    "s": 51.938,
    "l": 25.294
  },
  "oklch": {
    "l": 0.32907,
    "c": 0.08827,
    "h": 265.6
  },
  "luminance": 0.03454
}

Semantic roles & 50–950 ramp

primary
#1F3262
secondary
#978046
accent
#B34CDB
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06060C
muted
#7A7A7D

Preview Lab

Preview with #1F3262

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

Preview Lab → · Contrast checker → · Palette generator →

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