#252E57#252E57

#252E57 is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.6% C 0.074 H 272.2°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#252E57
RGBrgb(37, 46, 87)
HSLhsl(229, 40%, 24%)
HSVhsv(229, 57%, 34%)
CMYKcmyk(57.5%, 47.1%, 0%, 65.9%)
CIE-LABlab(20.18, 9.74, -26.06)
CIE-LCHlch(20.18, 27.82, 290.49°)
OKLaboklab(31.55% 0.0029 -0.074)
OKLCHoklch(31.55% 0.074 272.2)
XYZxyz(3.4597, 3.0352, 9.4185)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252E57 #574E25
analogous
#254757 #252E57 #352557
triadic
#252E57 #57252E #2E5725
tetradic
#252E57 #572547 #574E25 #255735
square
#252E57 #572547 #574E25 #255735
split-complementary
#252E57 #573525 #475725
monochromatic
#090B15 #13172C #252E57 #374582 #4A5BAD

Accessibility & contrast

On white

13.07
#252E57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#252E57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252E57
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252E57#FFFFFF#000000##FFFFFF
##252E571.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3359
Deuteranopia (green-blind)
#172F56
Tritanopia (blue-blind)
#0D373E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #252e57;
/* rgb */ color: rgb(37, 46, 87);
/* oklch */ color: oklch(31.6% 0.074 272.2);
Tailwind
colors: {
  custom: {
    50: '#646686',
    500: '#252e57',
    950: '#000000',
  },
}
SCSS
$custom: #252e57;
$custom-light: #646686;
$custom-dark: #000000;
JSON
{
  "hex": "#252e57",
  "rgb": {
    "r": 37,
    "g": 46,
    "b": 87
  },
  "hsl": {
    "h": 229.2,
    "s": 40.323,
    "l": 24.314
  },
  "oklch": {
    "l": 0.31552,
    "c": 0.07409,
    "h": 272.2
  },
  "luminance": 0.03035
}

Semantic roles & 50–950 ramp

primary
#252E57
secondary
#8A7F4D
accent
#BA58D0
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#06050B
muted
#7A7A7C

Preview Lab

Preview with #252E57

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

Preview Lab → · Contrast checker → · Palette generator →

#252E57 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva