#1F265E#1F265E

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

Color values

HEX#1F265E
RGBrgb(31, 38, 94)
HSLhsl(233, 50%, 25%)
HSVhsv(233, 67%, 37%)
CMYKcmyk(67%, 59.6%, 0%, 63.1%)
CIE-LABlab(17.85, 16.83, -34.48)
CIE-LCHlch(17.85, 38.37, 296.02°)
OKLaboklab(29.84% 0.0059 -0.099)
OKLCHoklch(29.84% 0.099 273.4)
XYZxyz(3.2779, 2.4854, 10.8945)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F265E #5E571F
analogous
#1F465E #1F265E #381F5E
triadic
#1F265E #5E1F26 #265E1F
tetradic
#1F265E #5E1F46 #5E571F #1F5E38
square
#1F265E #5E1F46 #5E571F #1F5E38
split-complementary
#1F265E #5E381F #465E1F
monochromatic
#080917 #101330 #1F265E #2E398C #3D4BBA

Accessibility & contrast

On white

14.03
#1F265E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F265E
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F265E#FFFFFF#000000##FFFFFF
##1F265E1.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f265e;
/* rgb */ color: rgb(31, 38, 94);
/* oklch */ color: oklch(29.8% 0.099 273.4);
Tailwind
colors: {
  custom: {
    50: '#62608c',
    500: '#1f265e',
    950: '#000000',
  },
}
SCSS
$custom: #1f265e;
$custom-light: #62608c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f265e",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 94
  },
  "hsl": {
    "h": 233.333,
    "s": 50.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29839,
    "c": 0.09923,
    "h": 273.4
  },
  "luminance": 0.02486
}

Semantic roles & 50–950 ramp

primary
#1F265E
secondary
#938A46
accent
#CA4EDA
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #1F265E

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

Preview Lab → · Contrast checker → · Palette generator →

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