#1F246E#1F246E

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

Color values

HEX#1F246E
RGBrgb(31, 36, 110)
HSLhsl(236, 56%, 28%)
HSVhsv(236, 72%, 43%)
CMYKcmyk(71.8%, 67.3%, 0%, 56.9%)
CIE-LABlab(18.71, 24.45, -43.58)
CIE-LCHlch(18.71, 49.97, 299.30°)
OKLaboklab(30.91% 0.0075 -0.1258)
OKLCHoklch(30.91% 0.126 273.4)
XYZxyz(4.0095, 2.6785, 15.0545)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F246E #6E691F
analogous
#1F4B6E #1F246E #421F6E
triadic
#1F246E #6E1F24 #246E1F
tetradic
#1F246E #6E1F4B #6E691F #1F6E42
square
#1F246E #6E1F4B #6E691F #1F6E42
split-complementary
#1F246E #6E421F #4B6E1F
monochromatic
#070818 #12143E #1F246E #2C349E #3F47C9

Accessibility & contrast

On white

13.67
#1F246E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F246E
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F246E#FFFFFF#000000##FFFFFF
##1F246E1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#002A6D
Tritanopia (blue-blind)
#003745
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f246e;
/* rgb */ color: rgb(31, 36, 110);
/* oklch */ color: oklch(30.9% 0.126 273.4);
Tailwind
colors: {
  custom: {
    50: '#675e98',
    500: '#1f246e',
    950: '#000000',
  },
}
SCSS
$custom: #1f246e;
$custom-light: #675e98;
$custom-dark: #000000;
JSON
{
  "hex": "#1f246e",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 110
  },
  "hsl": {
    "h": 236.203,
    "s": 56.028,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30911,
    "c": 0.12601,
    "h": 273.4
  },
  "luminance": 0.02679
}

Semantic roles & 50–950 ramp

primary
#1F246E
secondary
#A29C47
accent
#D648DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F246E

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

Preview Lab → · Contrast checker → · Palette generator →

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