#1F256C#1F256C

#1F256C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 30.9% C 0.122 H 273.2°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#1F256C
RGBrgb(31, 37, 108)
HSLhsl(235, 55%, 27%)
HSVhsv(235, 71%, 42%)
CMYKcmyk(71.3%, 65.7%, 0%, 57.6%)
CIE-LABlab(18.79, 22.99, -42.15)
CIE-LCHlch(18.79, 48.01, 298.61°)
OKLaboklab(30.91% 0.0068 -0.1216)
OKLCHoklch(30.91% 0.122 273.2)
XYZxyz(3.9325, 2.6968, 14.4977)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F256C #6C661F
analogous
#1F4B6C #1F256C #401F6C
triadic
#1F256C #6C1F25 #256C1F
tetradic
#1F256C #6C1F4B #6C661F #1F6C40
square
#1F256C #6C1F4B #6C661F #1F6C40
split-complementary
#1F256C #6C401F #4B6C1F
monochromatic
#070818 #11153C #1F256C #2D359C #3E49C8

Accessibility & contrast

On white

13.64
#1F256C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F256C
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F256C#FFFFFF#000000##FFFFFF
##1F256C1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#002A6B
Tritanopia (blue-blind)
#003744
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f256c;
/* rgb */ color: rgb(31, 37, 108);
/* oklch */ color: oklch(30.9% 0.122 273.2);
Tailwind
colors: {
  custom: {
    50: '#665f97',
    500: '#1f256c',
    950: '#000000',
  },
}
SCSS
$custom: #1f256c;
$custom-light: #665f97;
$custom-dark: #000000;
JSON
{
  "hex": "#1f256c",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 108
  },
  "hsl": {
    "h": 235.325,
    "s": 55.396,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30911,
    "c": 0.12178,
    "h": 273.2
  },
  "luminance": 0.02697
}

Semantic roles & 50–950 ramp

primary
#1F256C
secondary
#A09947
accent
#D349DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1F256C

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

Preview Lab → · Contrast checker → · Palette generator →

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