#1F256E#1F256E

#1F256E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.1% C 0.125 H 273.1°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#1F256E
RGBrgb(31, 37, 110)
HSLhsl(235, 56%, 28%)
HSVhsv(235, 72%, 43%)
CMYKcmyk(71.8%, 66.4%, 0%, 56.9%)
CIE-LABlab(18.97, 23.76, -43.15)
CIE-LCHlch(18.97, 49.26, 298.84°)
OKLaboklab(31.1% 0.0067 -0.1245)
OKLCHoklch(31.1% 0.125 273.1)
XYZxyz(4.0402, 2.7399, 15.0648)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F256E #6E681F
analogous
#1F4C6E #1F256E #401F6E
triadic
#1F256E #6E1F25 #256E1F
tetradic
#1F256E #6E1F4C #6E681F #1F6E40
square
#1F256E #6E1F4C #6E681F #1F6E40
split-complementary
#1F256E #6E401F #4C6E1F
monochromatic
#070818 #12153E #1F256E #2C359E #3F49C9

Accessibility & contrast

On white

13.57
#1F256E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F256E
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F256E#FFFFFF#000000##FFFFFF
##1F256E1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#003845
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f256e;
/* rgb */ color: rgb(31, 37, 110);
/* oklch */ color: oklch(31.1% 0.125 273.1);
Tailwind
colors: {
  custom: {
    50: '#665f98',
    500: '#1f256e',
    950: '#000000',
  },
}
SCSS
$custom: #1f256e;
$custom-light: #665f98;
$custom-dark: #000000;
JSON
{
  "hex": "#1f256e",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 110
  },
  "hsl": {
    "h": 235.443,
    "s": 56.028,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31103,
    "c": 0.1247,
    "h": 273.1
  },
  "luminance": 0.0274
}

Semantic roles & 50–950 ramp

primary
#1F256E
secondary
#A29B47
accent
#D448DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F256E

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

Preview Lab → · Contrast checker → · Palette generator →

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