#1F265F#1F265F

#1F265F is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.9% C 0.101 H 273.4°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#1F265F
RGBrgb(31, 38, 95)
HSLhsl(233, 51%, 25%)
HSVhsv(233, 67%, 37%)
CMYKcmyk(67.4%, 60%, 0%, 62.7%)
CIE-LABlab(17.93, 17.23, -35.01)
CIE-LCHlch(17.93, 39.02, 296.20°)
OKLaboklab(29.93% 0.006 -0.1006)
OKLCHoklch(29.93% 0.101 273.4)
XYZxyz(3.3231, 2.5035, 11.1324)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F265F #5F581F
analogous
#1F465F #1F265F #381F5F
triadic
#1F265F #5F1F26 #265F1F
tetradic
#1F265F #5F1F46 #5F581F #1F5F38
square
#1F265F #5F1F46 #5F581F #1F5F38
split-complementary
#1F265F #5F381F #465F1F
monochromatic
#080917 #101431 #1F265F #2E388D #3D4BBB

Accessibility & contrast

On white

13.99
#1F265F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#1F265F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F265F
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F265F#FFFFFF#000000##FFFFFF
##1F265F1.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F61
Deuteranopia (green-blind)
#00295E
Tritanopia (blue-blind)
#00343E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1f265f;
/* rgb */ color: rgb(31, 38, 95);
/* oklch */ color: oklch(29.9% 0.101 273.4);
Tailwind
colors: {
  custom: {
    50: '#63608d',
    500: '#1f265f',
    950: '#000000',
  },
}
SCSS
$custom: #1f265f;
$custom-light: #63608d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f265f",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 95
  },
  "hsl": {
    "h": 233.438,
    "s": 50.794,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29926,
    "c": 0.10078,
    "h": 273.4
  },
  "luminance": 0.02504
}

Semantic roles & 50–950 ramp

primary
#1F265F
secondary
#948B46
accent
#CB4EDA
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #1F265F

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

Preview Lab → · Contrast checker → · Palette generator →

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