#1F265D#1F265D

#1F265D is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.8% C 0.098 H 273.5°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#1F265D
RGBrgb(31, 38, 93)
HSLhsl(233, 50%, 24%)
HSVhsv(233, 67%, 36%)
CMYKcmyk(66.7%, 59.1%, 0%, 63.5%)
CIE-LABlab(17.77, 16.44, -33.95)
CIE-LCHlch(17.77, 37.72, 295.84°)
OKLaboklab(29.75% 0.0059 -0.0975)
OKLCHoklch(29.75% 0.098 273.5)
XYZxyz(3.2333, 2.4676, 10.6597)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F265D #5D561F
analogous
#1F455D #1F265D #371F5D
triadic
#1F265D #5D1F26 #265D1F
tetradic
#1F265D #5D1F45 #5D561F #1F5D37
square
#1F265D #5D1F45 #5D561F #1F5D37
split-complementary
#1F265D #5D371F #455D1F
monochromatic
#080917 #10132F #1F265D #2E398B #3E4CB9

Accessibility & contrast

On white

14.06
#1F265D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#1F265D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F265D
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F265D#FFFFFF#000000##FFFFFF
##1F265D1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E5F
Deuteranopia (green-blind)
#00295C
Tritanopia (blue-blind)
#00333D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1f265d;
/* rgb */ color: rgb(31, 38, 93);
/* oklch */ color: oklch(29.8% 0.098 273.5);
Tailwind
colors: {
  custom: {
    50: '#62608b',
    500: '#1f265d',
    950: '#000000',
  },
}
SCSS
$custom: #1f265d;
$custom-light: #62608b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f265d",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 93
  },
  "hsl": {
    "h": 233.226,
    "s": 50,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29752,
    "c": 0.09766,
    "h": 273.5
  },
  "luminance": 0.02468
}

Semantic roles & 50–950 ramp

primary
#1F265D
secondary
#928946
accent
#CA4EDA
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #1F265D

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

Preview Lab → · Contrast checker → · Palette generator →

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