#1F258B#1F258B

#1F258B is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.165 H 271.2°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#1F258B
RGBrgb(31, 37, 139)
HSLhsl(237, 64%, 33%)
HSVhsv(237, 78%, 55%)
CMYKcmyk(77.7%, 73.4%, 0%, 45.5%)
CIE-LABlab(21.86, 34.60, -56.83)
CIE-LCHlch(21.86, 66.53, 301.34°)
OKLaboklab(34.08% 0.0035 -0.1645)
OKLCHoklch(34.08% 0.165 271.2)
XYZxyz(5.8853, 3.4779, 24.7822)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F258B #8B851F
analogous
#1F5B8B #1F258B #4F1F8B
triadic
#1F258B #8B1F25 #258B1F
tetradic
#1F258B #8B1F5B #8B851F #1F8B4F
square
#1F258B #8B1F5B #8B851F #1F8B4F
split-complementary
#1F258B #8B4F1F #5B8B1F
monochromatic
#090A27 #141859 #1F258B #2A32BD #4D55D7

Accessibility & contrast

On white

12.38
#1F258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1F258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F258B
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F258B#FFFFFF#000000##FFFFFF
##1F258B1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f258b;
/* rgb */ color: rgb(31, 37, 139);
/* oklch */ color: oklch(34.1% 0.165 271.2);
Tailwind
colors: {
  custom: {
    50: '#6e60ae',
    500: '#1f258b',
    950: '#000000',
  },
}
SCSS
$custom: #1f258b;
$custom-light: #6e60ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f258b",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 236.667,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34082,
    "c": 0.16454,
    "h": 271.2
  },
  "luminance": 0.03479
}

Semantic roles & 50–950 ramp

primary
#1F258B
secondary
#BAB44C
accent
#DD41E7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F258B

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

Preview Lab → · Contrast checker → · Palette generator →

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