#1F256B#1F256B

#1F256B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 30.8% C 0.120 H 273.3°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#1F256B
RGBrgb(31, 37, 107)
HSLhsl(235, 55%, 27%)
HSVhsv(235, 71%, 42%)
CMYKcmyk(71%, 65.4%, 0%, 58%)
CIE-LABlab(18.69, 22.61, -41.65)
CIE-LCHlch(18.69, 47.39, 298.49°)
OKLaboklab(30.82% 0.0068 -0.1201)
OKLCHoklch(30.82% 0.12 273.3)
XYZxyz(3.8796, 2.6756, 14.2191)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F256B #6B651F
analogous
#1F4B6B #1F256B #3F1F6B
triadic
#1F256B #6B1F25 #256B1F
tetradic
#1F256B #6B1F4B #6B651F #1F6B3F
square
#1F256B #6B1F4B #6B651F #1F6B3F
split-complementary
#1F256B #6B3F1F #4B6B1F
monochromatic
#070818 #11153C #1F256B #2D359A #3D48C7

Accessibility & contrast

On white

13.68
#1F256B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1F256B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F256B
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F256B#FFFFFF#000000##FFFFFF
##1F256B1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316D
Deuteranopia (green-blind)
#002A6A
Tritanopia (blue-blind)
#003744
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f256b;
/* rgb */ color: rgb(31, 37, 107);
/* oklch */ color: oklch(30.8% 0.120 273.3);
Tailwind
colors: {
  custom: {
    50: '#665f96',
    500: '#1f256b',
    950: '#000000',
  },
}
SCSS
$custom: #1f256b;
$custom-light: #665f96;
$custom-dark: #000000;
JSON
{
  "hex": "#1f256b",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 107
  },
  "hsl": {
    "h": 235.263,
    "s": 55.072,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30816,
    "c": 0.12031,
    "h": 273.3
  },
  "luminance": 0.02676
}

Semantic roles & 50–950 ramp

primary
#1F256B
secondary
#9F9847
accent
#D349DE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1F256B

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

Preview Lab → · Contrast checker → · Palette generator →

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