#1F1268#1F1268

#1F1268 is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.3% C 0.139 H 278.8°. Best body text is #FFFFFF at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#1F1268
RGBrgb(31, 18, 104)
HSLhsl(249, 70%, 24%)
HSVhsv(249, 83%, 41%)
CMYKcmyk(70.2%, 82.7%, 0%, 59.2%)
CIE-LABlab(13.96, 33.63, -47.46)
CIE-LCHlch(13.96, 58.17, 305.32°)
OKLaboklab(27.32% 0.0213 -0.1371)
OKLCHoklch(27.32% 0.139 278.8)
XYZxyz(3.2793, 1.7231, 13.2538)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1268 #5B6812
analogous
#123068 #1F1268 #4A1268
triadic
#1F1268 #681F12 #12681F
tetradic
#1F1268 #681230 #5B6812 #12684A
square
#1F1268 #681230 #5B6812 #12684A
split-complementary
#1F1268 #684A12 #306812
monochromatic
#08051A #0F0934 #1F1268 #2F1B9C #3E24D0

Accessibility & contrast

On white

15.62
#1F1268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#1F1268 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1268
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1268#FFFFFF#000000##FFFFFF
##1F12681.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276A
Deuteranopia (green-blind)
#002066
Tritanopia (blue-blind)
#002C3D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1f1268;
/* rgb */ color: rgb(31, 18, 104);
/* oklch */ color: oklch(27.3% 0.139 278.8);
Tailwind
colors: {
  custom: {
    50: '#675294',
    500: '#1f1268',
    950: '#000000',
  },
}
SCSS
$custom: #1f1268;
$custom-light: #675294;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1268",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 104
  },
  "hsl": {
    "h": 249.07,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.27322,
    "c": 0.13871,
    "h": 278.8
  },
  "luminance": 0.01723
}

Semantic roles & 50–950 ramp

primary
#1F1268
secondary
#90A036
accent
#ED3BD2
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #1F1268

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

Preview Lab → · Contrast checker → · Palette generator →

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