#1F238C#1F238C

#1F238C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.168 H 271.5°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#1F238C
RGBrgb(31, 35, 140)
HSLhsl(238, 64%, 34%)
HSVhsv(238, 78%, 55%)
CMYKcmyk(77.9%, 75%, 0%, 45.1%)
CIE-LABlab(21.53, 36.19, -58.01)
CIE-LCHlch(21.53, 68.37, 301.96°)
OKLaboklab(33.87% 0.0043 -0.1679)
OKLCHoklch(33.87% 0.168 271.5)
XYZxyz(5.8981, 3.3862, 25.1486)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F238C #8C881F
analogous
#1F598C #1F238C #511F8C
triadic
#1F238C #8C1F23 #238C1F
tetradic
#1F238C #8C1F59 #8C881F #1F8C51
square
#1F238C #8C1F59 #8C881F #1F8C51
split-complementary
#1F238C #8C511F #598C1F
monochromatic
#090A28 #14165A #1F238C #2A30BE #4E53D8

Accessibility & contrast

On white

12.52
#1F238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1F238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F238C
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F238C#FFFFFF#000000##FFFFFF
##1F238C1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f238c;
/* rgb */ color: rgb(31, 35, 140);
/* oklch */ color: oklch(33.9% 0.168 271.5);
Tailwind
colors: {
  custom: {
    50: '#6e5faf',
    500: '#1f238c',
    950: '#000000',
  },
}
SCSS
$custom: #1f238c;
$custom-light: #6e5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#1f238c",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 237.798,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33874,
    "c": 0.16798,
    "h": 271.5
  },
  "luminance": 0.03387
}

Semantic roles & 50–950 ramp

primary
#1F238C
secondary
#BBB74C
accent
#E141E7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F238C

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

Preview Lab → · Contrast checker → · Palette generator →

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