#1F256F#1F256F

#1F256F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.2% C 0.126 H 273.0°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#1F256F
RGBrgb(31, 37, 111)
HSLhsl(236, 56%, 28%)
HSVhsv(236, 72%, 44%)
CMYKcmyk(72.1%, 66.7%, 0%, 56.5%)
CIE-LABlab(19.06, 24.15, -43.64)
CIE-LCHlch(19.06, 49.88, 298.95°)
OKLaboklab(31.2% 0.0066 -0.126)
OKLCHoklch(31.2% 0.126 273)
XYZxyz(4.0949, 2.7618, 15.3531)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F256F #6F691F
analogous
#1F4D6F #1F256F #411F6F
triadic
#1F256F #6F1F25 #256F1F
tetradic
#1F256F #6F1F4D #6F691F #1F6F41
square
#1F256F #6F1F4D #6F691F #1F6F41
split-complementary
#1F256F #6F411F #4D6F1F
monochromatic
#070818 #12153F #1F256F #2C359F #3F49C9

Accessibility & contrast

On white

13.53
#1F256F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1F256F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F256F
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F256F#FFFFFF#000000##FFFFFF
##1F256F1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#002B6E
Tritanopia (blue-blind)
#003846
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f256f;
/* rgb */ color: rgb(31, 37, 111);
/* oklch */ color: oklch(31.2% 0.126 273.0);
Tailwind
colors: {
  custom: {
    50: '#675f99',
    500: '#1f256f',
    950: '#000000',
  },
}
SCSS
$custom: #1f256f;
$custom-light: #675f99;
$custom-dark: #000000;
JSON
{
  "hex": "#1f256f",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 111
  },
  "hsl": {
    "h": 235.5,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.312,
    "c": 0.12614,
    "h": 273
  },
  "luminance": 0.02762
}

Semantic roles & 50–950 ramp

primary
#1F256F
secondary
#A39C47
accent
#D448E0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F256F

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

Preview Lab → · Contrast checker → · Palette generator →

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