#1F256A#1F256A

#1F256A is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.7% C 0.119 H 273.3°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#1F256A
RGBrgb(31, 37, 106)
HSLhsl(235, 55%, 27%)
HSVhsv(235, 71%, 42%)
CMYKcmyk(70.8%, 65.1%, 0%, 58.4%)
CIE-LABlab(18.60, 22.22, -41.15)
CIE-LCHlch(18.60, 46.76, 298.37°)
OKLaboklab(30.72% 0.0069 -0.1186)
OKLCHoklch(30.72% 0.119 273.3)
XYZxyz(3.8273, 2.6547, 13.9436)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F256A #6A641F
analogous
#1F4B6A #1F256A #3F1F6A
triadic
#1F256A #6A1F25 #256A1F
tetradic
#1F256A #6A1F4B #6A641F #1F6A3F
square
#1F256A #6A1F4B #6A641F #1F6A3F
split-complementary
#1F256A #6A3F1F #4B6A1F
monochromatic
#070818 #11143B #1F256A #2D3699 #3D48C6

Accessibility & contrast

On white

13.72
#1F256A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1F256A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F256A
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F256A#FFFFFF#000000##FFFFFF
##1F256A1.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#002A69
Tritanopia (blue-blind)
#003643
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f256a;
/* rgb */ color: rgb(31, 37, 106);
/* oklch */ color: oklch(30.7% 0.119 273.3);
Tailwind
colors: {
  custom: {
    50: '#655f95',
    500: '#1f256a',
    950: '#000000',
  },
}
SCSS
$custom: #1f256a;
$custom-light: #655f95;
$custom-dark: #000000;
JSON
{
  "hex": "#1f256a",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 106
  },
  "hsl": {
    "h": 235.2,
    "s": 54.745,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30721,
    "c": 0.11884,
    "h": 273.3
  },
  "luminance": 0.02655
}

Semantic roles & 50–950 ramp

primary
#1F256A
secondary
#9E9747
accent
#D24ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1F256A

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

Preview Lab → · Contrast checker → · Palette generator →

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